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

@@ -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)