aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2016-10-15 17:51:05 -0400
committerMatt Corallo <[email protected]>2016-10-15 17:51:05 -0400
commita4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8 (patch)
treec3c3d2ee1fbc0113d1a6db738a268624914a028f
parent[qa] Send segwit-encoded blocktxn messages in p2p-compactblocks (diff)
downloaddiscoin-a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8.tar.xz
discoin-a4ad37d4ef4bcd81bc9d867b277efdebc86bc2e8.zip
[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.
-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 1beab609b..131654c33 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()