Skip to content

Commit

Permalink
[qa] Build v4 blocks in p2p-compactblocktests
Browse files Browse the repository at this point in the history
This fixes an issue in backporting to 0.13 as 0.13 enforces SF
activation by block version lockin instead of through a hard-coded
block height.

Github-Pull: #8916
Rebased-From: a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8
  • Loading branch information
TheBlueMatt authored and laanwj committed Oct 17, 2016
1 parent df5069b commit 9bb2a02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qa/rpc-tests/p2p-compactblocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def build_block_on_tip(self, node, segwit=False):
tip = node.getbestblockhash()
mtp = node.getblockheader(tip)['mediantime']
block = create_block(int(tip, 16), create_coinbase(height + 1), mtp + 1)
block.nVersion = 4
if segwit:
add_witness_commitment(block)
block.solve()
Expand Down

0 comments on commit 9bb2a02

Please sign in to comment.