fix indent

This commit is contained in:
Alan Penner 2014-01-19 10:14:21 -08:00
parent ff8f4e51fb
commit a71d031119

View File

@ -44,16 +44,16 @@ def setup(on_startup):
if isinstance(result, dict):
# litecoind implements version 1 of getblocktemplate
if result['version'] >= 1:
result = (yield bitcoin_rpc.getdifficulty())
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
result = (yield bitcoin_rpc.getdifficulty())
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'])