Added POS/POW Check
This commit is contained in:
parent
7ff4cadd8e
commit
8c10f572e1
@ -44,9 +44,6 @@ def setup(on_startup):
|
|||||||
if isinstance(result, dict):
|
if isinstance(result, dict):
|
||||||
# litecoind implements version 1 of getblocktemplate
|
# litecoind implements version 1 of getblocktemplate
|
||||||
if result['version'] >= 1:
|
if result['version'] >= 1:
|
||||||
break
|
|
||||||
while True:
|
|
||||||
try:
|
|
||||||
result = (yield bitcoin_rpc.getinfo())
|
result = (yield bitcoin_rpc.getinfo())
|
||||||
if isinstance(result,dict):
|
if isinstance(result,dict):
|
||||||
if 'stake' in result and settings.COINDAEMON_Reward == 'POS':
|
if 'stake' in result and settings.COINDAEMON_Reward == 'POS':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user