test: refactor: take use of create_block version parameter (or use default)

This commit is contained in:
Sebastian Falbesoner
2021-11-15 16:13:56 +01:00
parent d94dc69ee4
commit ae9df4ef93
7 changed files with 4 additions and 12 deletions

View File

@@ -232,7 +232,6 @@ class SegWitTest(BitcoinTestFramework):
height = self.nodes[0].getblockcount() + 1
block_time = self.nodes[0].getblockheader(tip)["mediantime"] + 1
block = create_block(int(tip, 16), create_coinbase(height), block_time)
block.nVersion = 4
block.rehash()
return block