Skip to content

Commit

Permalink
Merge pull request p2pool#368 from veqtrus/revert_immediate_segwit
Browse files Browse the repository at this point in the history
Tweaks to transaction selection
  • Loading branch information
forrestv authored Dec 30, 2017
2 parents afcb011 + fa52b11 commit 27255ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions p2pool/bitcoin/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +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']]
packed_transactions = [x['data'].decode('hex') for x in work['transactions'] if len(x.get('depends', [])) == 0]
if 'height' not in work:
work['height'] = (yield bitcoind.rpc_getblock(work['previousblockhash']))['height'] + 1
elif p2pool.DEBUG:
Expand Down

0 comments on commit 27255ec

Please sign in to comment.