aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_dersig.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-11-15 16:13:56 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-11-17 15:44:09 +0100
commitae9df4ef937ef77405f6edd7c13615df7b63446f (patch)
tree7c29ea4c0b6bbb0f1a856ea4ef9f71cbdf58811e /test/functional/feature_dersig.py
parentd94dc69ee454144f4db12d163b15717cc6cad383 (diff)
downloadbitcoin-ae9df4ef937ef77405f6edd7c13615df7b63446f.tar.xz
test: refactor: take use of `create_block` version parameter (or use default)
Diffstat (limited to 'test/functional/feature_dersig.py')
-rwxr-xr-xtest/functional/feature_dersig.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/feature_dersig.py b/test/functional/feature_dersig.py
index 8a71bf480e..af92dc8575 100755
--- a/test/functional/feature_dersig.py
+++ b/test/functional/feature_dersig.py
@@ -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)']):