aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-10-15 17:51:05 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2016-10-17 13:15:30 +0200
commit9bb2a02f0dd8851a6dc413fd86ce0b51878b5007 (patch)
tree19253c283831341f6d87b963650700da1b91088f /qa
parentdf5069bb0e56476fe3c0670922d9cdb678c40c29 (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. Github-Pull: #8916 Rebased-From: a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8
Diffstat (limited to 'qa')
-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()