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 -2
View File
@@ -100,8 +100,7 @@ class BIP66Test(BitcoinTestFramework):
self.log.info("Test that blocks must now be at least version 3")
tip = block.sha256
block_time += 1
block = create_block(tip, create_coinbase(DERSIG_HEIGHT), block_time)
block.nVersion = 2
block = create_block(tip, create_coinbase(DERSIG_HEIGHT), block_time, version=2)
block.solve()
with self.nodes[0].assert_debug_log(expected_msgs=[f'{block.hash}, bad-version(0x00000002)']):