From 7ff4cadd8ec0e005c4a575a05c11879388867bc2 Mon Sep 17 00:00:00 2001 From: ahmedbodi Date: Fri, 27 Dec 2013 22:14:20 +0100 Subject: [PATCH] Attempt 2 at POS/POW check --- mining/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mining/__init__.py b/mining/__init__.py index 535899a..59f78ba 100644 --- a/mining/__init__.py +++ b/mining/__init__.py @@ -51,7 +51,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 'stake' is not in result and settings.COINDAEMON_Reward == 'POW': + elif result.has_key('stake') and settings.COINDAEMON_Reward == 'POW': break else: log.error("Wrong Algo Selected, Switch to appropriate POS/POW in config.py!")