diff options
author | Matt Corallo <git@bluematt.me> | 2016-10-15 17:51:05 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-10-15 17:51:05 -0400 |
commit | a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8 (patch) | |
tree | c3c3d2ee1fbc0113d1a6db738a268624914a028f /qa/rpc-tests/p2p-compactblocks.py | |
parent | 032e883b937a6b70d5c367fc2ee57d7eea8cb473 (diff) | |
download | bitcoin-a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8.tar.xz |
[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-x | qa/rpc-tests/p2p-compactblocks.py | 1 |
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() |