From 36e185e54eedc087ce7e4083abc5aa67a7a4ff9e Mon Sep 17 00:00:00 2001 From: Ahmed Bodiwala Date: Fri, 27 Dec 2013 21:59:31 +0000 Subject: [PATCH] Fixed POS/POW Check --- mining/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mining/__init__.py b/mining/__init__.py index d5f665c..c65a812 100644 --- a/mining/__init__.py +++ b/mining/__init__.py @@ -48,9 +48,8 @@ def setup(on_startup): if isinstance(result,dict): if 'stake' in result and settings.COINDAEMON_Reward == 'POS': break - #elif 'stake' is not in result and settings.COINDAEMON_Reward == 'POW': - elif result.has_key('stake') and settings.COINDAEMON_Reward == 'POW': - break + elif 'stake' not in result and settings.COINDAEMON_Reward == 'POW': + break else: log.error("Wrong Algo Selected, Switch to appropriate POS/POW in config.py!") reactor.stop()