Skip to content

Commit

Permalink
Don't mine segwit txs for now
Browse files Browse the repository at this point in the history
  • Loading branch information
veqtrus committed Aug 23, 2017
1 parent 62fa7b0 commit d863472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2pool/bitcoin/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def go():
except jsonrpc.Error_for_code(-32601): # Method not found
print >>sys.stderr, 'Error: Bitcoin version too old! Upgrade to v0.5 or newer!'
raise deferral.RetrySilentlyException()
work['transactions'] = [x for x in work['transactions'] if x['txid'] == x['hash']] # don't mine segwit txs for now
packed_transactions = [(x['data'] if isinstance(x, dict) else x).decode('hex') for x in work['transactions']]
if 'height' not in work:
work['height'] = (yield bitcoind.rpc_getblock(work['previousblockhash']))['height'] + 1
Expand Down

0 comments on commit d863472

Please sign in to comment.