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

This commit is contained in:
Sebastian Falbesoner committed 2021-11-17 15:44:09 +01:00
1 parent d94dc69ee4
commit ae9df4ef93
7 files changed
+4 -12

No files matched your search

-1
View File
@@ -1267,7 +1267,6 @@ class TaprootTest(BitcoinTestFramework):
extra_output_script = CScript([OP_CHECKSIG]*((MAX_BLOCK_SIGOPS_WEIGHT - sigops_weight) // WITNESS_SCALE_FACTOR))
block = create_block(self.tip, create_coinbase(self.lastblockheight + 1, pubkey=cb_pubkey, extra_output_script=extra_output_script, fees=fees), self.lastblocktime + 1)
block.nVersion = 4
for tx in txs:
tx.rehash()
block.vtx.append(tx)