add logging to POW/POS detection
This commit is contained in:
parent
795ebfa18d
commit
ff8f4e51fb
@ -48,9 +48,11 @@ def setup(on_startup):
|
|||||||
if isinstance(result,dict):
|
if isinstance(result,dict):
|
||||||
if 'proof-of-stake' in result: # and settings.COINDAEMON_Reward == 'POS':
|
if 'proof-of-stake' in result: # and settings.COINDAEMON_Reward == 'POS':
|
||||||
settings.COINDAEMON_Reward = 'POS'
|
settings.COINDAEMON_Reward = 'POS'
|
||||||
|
log.info("Coin detected as POS")
|
||||||
break
|
break
|
||||||
elif 'proof-of-stake' not in result: # and settings.COINDAEMON_Reward == 'POW':
|
elif 'proof-of-stake' not in result: # and settings.COINDAEMON_Reward == 'POW':
|
||||||
settings.COINDAEMON_Reward = 'POW'
|
settings.COINDAEMON_Reward = 'POW'
|
||||||
|
log.info("Coin detected as POW")
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
log.error("Block Version mismatch: %s" % result['version'])
|
log.error("Block Version mismatch: %s" % result['version'])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user