add logging to POW/POS detection

This commit is contained in:
Alan Penner 2014-01-19 10:12:13 -08:00
parent 795ebfa18d
commit ff8f4e51fb

View File

@ -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'])