Skip to content

Commit a4ad37d

Browse files
committed
[qa] Build v4 blocks in p2p-compactblocktests
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.
1 parent 032e883 commit a4ad37d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qa/rpc-tests/p2p-compactblocks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def build_block_on_tip(self, node, segwit=False):
128128
tip = node.getbestblockhash()
129129
mtp = node.getblockheader(tip)['mediantime']
130130
block = create_block(int(tip, 16), create_coinbase(height + 1), mtp + 1)
131+
block.nVersion = 4
131132
if segwit:
132133
add_witness_commitment(block)
133134
block.solve()

0 commit comments

Comments
 (0)