aboutsummaryrefslogtreecommitdiff
path: root/test/functional/feature_dersig.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-08-27 16:36:17 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-09-16 18:52:19 +0200
commitfaa46986aaec69e4cf016101ae517ce8778e2ac5 (patch)
treeac5e11c632980775ca9f0e6b49e04de13dbb1aa2 /test/functional/feature_dersig.py
parentfa086ef5398b5ffded86e4f0d6633c523cb774e9 (diff)
downloadbitcoin-faa46986aaec69e4cf016101ae517ce8778e2ac5.tar.xz
test: Remove version argument from build_next_block in p2p_segwit test
The block version does not have any effect on the segwit consensus rules or block relay logic. Same for feature_dersig.
Diffstat (limited to 'test/functional/feature_dersig.py')
-rwxr-xr-xtest/functional/feature_dersig.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/feature_dersig.py b/test/functional/feature_dersig.py
index 595d26611a..abf4cfeba2 100755
--- a/test/functional/feature_dersig.py
+++ b/test/functional/feature_dersig.py
@@ -83,7 +83,6 @@ class BIP66Test(BitcoinTestFramework):
tip = self.nodes[0].getbestblockhash()
block_time = self.nodes[0].getblockheader(tip)['mediantime'] + 1
block = create_block(int(tip, 16), create_coinbase(DERSIG_HEIGHT - 1), block_time)
- block.nVersion = 2
block.vtx.append(spendtx)
block.hashMerkleRoot = block.calc_merkle_root()
block.rehash()
@@ -110,7 +109,7 @@ class BIP66Test(BitcoinTestFramework):
peer.sync_with_ping()
self.log.info("Test that transactions with non-DER signatures cannot appear in a block")
- block.nVersion = 3
+ block.nVersion = 4
spendtx = self.create_tx(self.coinbase_txids[1])
unDERify(spendtx)
@@ -139,7 +138,7 @@ class BIP66Test(BitcoinTestFramework):
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
peer.sync_with_ping()
- self.log.info("Test that a version 3 block with a DERSIG-compliant transaction is accepted")
+ self.log.info("Test that a block with a DERSIG-compliant transaction is accepted")
block.vtx[1] = self.create_tx(self.coinbase_txids[1])
block.hashMerkleRoot = block.calc_merkle_root()
block.rehash()