Skip to content

Commit 5c31b20

Browse files
committed
[qa] Remove some pre-activation segwit tests
This is in preparation for always enforcing SCRIPT_VERIFY_WITNESS.
1 parent 95749a5 commit 5c31b20

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

test/functional/feature_segwit.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,11 @@ def run_test(self):
150150
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V0][0], True) #block 426
151151
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V1][0], True) #block 427
152152

153-
# TODO: An old node would see these txs without witnesses and be able to mine them
154-
155-
self.log.info("Verify unsigned bare witness txs in versionbits-setting blocks are valid before the fork")
156-
self.success_mine(self.nodes[2], wit_ids[NODE_2][WIT_V0][1], False) #block 428
157-
self.success_mine(self.nodes[2], wit_ids[NODE_2][WIT_V1][1], False) #block 429
158-
159153
self.log.info("Verify unsigned p2sh witness txs without a redeem script are invalid")
160154
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V0][1], False)
161155
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V1][1], False)
162156

163-
self.log.info("Verify unsigned p2sh witness txs with a redeem script in versionbits-settings blocks are valid before the fork")
164-
self.success_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V0][1], False, witness_script(False, self.pubkey[2])) #block 430
165-
self.success_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V1][1], False, witness_script(True, self.pubkey[2])) #block 431
157+
self.nodes[2].generate(4) # blocks 428-431
166158

167159
self.log.info("Verify previous witness txs skipped for mining can now be mined")
168160
assert_equal(len(self.nodes[2].getrawmempool()), 4)

test/functional/p2p_segwit.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1914,7 +1914,6 @@ def run_test(self):
19141914
self.test_unnecessary_witness_before_segwit_activation()
19151915
self.test_witness_tx_relay_before_segwit_activation()
19161916
self.test_block_relay(segwit_activated=False)
1917-
self.test_p2sh_witness(segwit_activated=False)
19181917
self.test_standardness_v0(segwit_activated=False)
19191918

19201919
sync_blocks(self.nodes)

0 commit comments

Comments
 (0)