mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-14 20:20:43 +02:00
Fix for incorrect version attr set on functional test segwit block.
This commit is contained in:
parent
ba923e32a0
commit
1d0ce94a54
@ -205,7 +205,7 @@ class SegWitTest(BitcoinTestFramework):
|
|||||||
height = self.nodes[0].getblockcount() + 1
|
height = self.nodes[0].getblockcount() + 1
|
||||||
block_time = self.nodes[0].getblockheader(tip)["mediantime"] + 1
|
block_time = self.nodes[0].getblockheader(tip)["mediantime"] + 1
|
||||||
block = create_block(int(tip, 16), create_coinbase(height), block_time)
|
block = create_block(int(tip, 16), create_coinbase(height), block_time)
|
||||||
block.version = version
|
block.nVersion = version
|
||||||
block.rehash()
|
block.rehash()
|
||||||
return block
|
return block
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user