mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-19 03:20:37 +00:00
[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
This commit is contained in:
parent
df5069bb0e
commit
9bb2a02f0d
@ -128,6 +128,7 @@ class CompactBlocksTest(BitcoinTestFramework):
|
|||||||
tip = node.getbestblockhash()
|
tip = node.getbestblockhash()
|
||||||
mtp = node.getblockheader(tip)['mediantime']
|
mtp = node.getblockheader(tip)['mediantime']
|
||||||
block = create_block(int(tip, 16), create_coinbase(height + 1), mtp + 1)
|
block = create_block(int(tip, 16), create_coinbase(height + 1), mtp + 1)
|
||||||
|
block.nVersion = 4
|
||||||
if segwit:
|
if segwit:
|
||||||
add_witness_commitment(block)
|
add_witness_commitment(block)
|
||||||
block.solve()
|
block.solve()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user