aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/p2p-compactblocks.py
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-10-15 17:51:05 -0400
committerMatt Corallo <git@bluematt.me>2016-10-15 17:51:05 -0400
commita4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8 (patch)
treec3c3d2ee1fbc0113d1a6db738a268624914a028f /qa/rpc-tests/p2p-compactblocks.py
parent032e883b937a6b70d5c367fc2ee57d7eea8cb473 (diff)
[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.
Diffstat (limited to 'qa/rpc-tests/p2p-compactblocks.py')
-rwxr-xr-xqa/rpc-tests/p2p-compactblocks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/rpc-tests/p2p-compactblocks.py b/qa/rpc-tests/p2p-compactblocks.py
index 1beab609b6..131654c333 100755
--- a/qa/rpc-tests/p2p-compactblocks.py
+++ b/qa/rpc-tests/p2p-compactblocks.py
@@ -128,6 +128,7 @@ class CompactBlocksTest(BitcoinTestFramework):
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()