Skip to content

Commit

Permalink
Allow bitcoin mining with pruned blockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoomim committed Dec 10, 2017
1 parent 341a8ab commit d8de77e
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 @@ -131,7 +131,7 @@ def submit_block(block, ignore_failure, factory, bitcoind, bitcoind_work, net):
@defer.inlineCallbacks
def check_genesis_block(bitcoind, genesis_block_hash):
try:
yield bitcoind.rpc_getblock(genesis_block_hash)
yield bitcoind.rpc_getblockheader(genesis_block_hash)
except jsonrpc.Error_for_code(-5):
defer.returnValue(False)
else:
Expand Down

0 comments on commit d8de77e

Please sign in to comment.