Skip to content

Commit

Permalink
Update helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kr1z1s authored Jul 12, 2020
1 parent 02cf1cb commit 9d51733
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion p2pool/bitcoin/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ def check(bitcoind, net, args):

try:
blockchaininfo = yield bitcoind.rpc_getblockchaininfo()
softforks_supported = set(item['id'] for item in blockchaininfo.get('softforks', []))
try:
softforks_supported = set(item['id'] for item in blockchaininfo.get('softforks', [])) # not working with 0.19.0.1
except TypeError:
softforks_supported = set(item for item in blockchaininfo.get('softforks', [])) # fix for https://github.com/jtoomim/p2pool/issues/38
try:
softforks_supported |= set(item['id'] for item in blockchaininfo.get('bip9_softforks', []))
except TypeError: # https://github.com/bitcoin/bitcoin/pull/7863
Expand Down

0 comments on commit 9d51733

Please sign in to comment.