Skip to content

Commit

Permalink
fix for coin daemons that don't return softforks list
Browse files Browse the repository at this point in the history
  • Loading branch information
forrestv committed Dec 18, 2015
1 parent c8e2536 commit 97a5deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2pool/bitcoin/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def check(bitcoind, net):
raise deferral.RetrySilentlyException()

try:
softforks_supported = set(item['id'] for item in (yield bitcoind.rpc_getblockchaininfo())['softforks'])
softforks_supported = set(item['id'] for item in (yield bitcoind.rpc_getblockchaininfo()).get('softforks', []))
except jsonrpc.Error_for_code(-32601): # Method not found
softforks_supported = set()
if getattr(net, 'SOFTFORKS_REQUIRED', set()) - softforks_supported:
Expand Down

0 comments on commit 97a5deb

Please sign in to comment.