From ff8f4e51fb5cc42a0cf0b3dbea1b78998a7d3f08 Mon Sep 17 00:00:00 2001 From: Alan Penner Date: Sun, 19 Jan 2014 10:12:13 -0800 Subject: [PATCH] add logging to POW/POS detection --- mining/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mining/__init__.py b/mining/__init__.py index ae19935..64d7956 100644 --- a/mining/__init__.py +++ b/mining/__init__.py @@ -48,9 +48,11 @@ def setup(on_startup): if isinstance(result,dict): if 'proof-of-stake' in result: # and settings.COINDAEMON_Reward == 'POS': settings.COINDAEMON_Reward = 'POS' + log.info("Coin detected as POS") break elif 'proof-of-stake' not in result: # and settings.COINDAEMON_Reward == 'POW': settings.COINDAEMON_Reward = 'POW' + log.info("Coin detected as POW") break else: log.error("Block Version mismatch: %s" % result['version'])