[qa] Remove some pre-activation segwit tests
This is in preparation for always enforcing SCRIPT_VERIFY_WITNESS.
This commit is contained in:
parent
95749a5836
commit
5c31b20a35
2 changed files with 1 additions and 10 deletions
|
@ -150,19 +150,11 @@ class SegWitTest(BitcoinTestFramework):
|
||||||
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V0][0], True) #block 426
|
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V0][0], True) #block 426
|
||||||
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V1][0], True) #block 427
|
self.skip_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V1][0], True) #block 427
|
||||||
|
|
||||||
# TODO: An old node would see these txs without witnesses and be able to mine them
|
|
||||||
|
|
||||||
self.log.info("Verify unsigned bare witness txs in versionbits-setting blocks are valid before the fork")
|
|
||||||
self.success_mine(self.nodes[2], wit_ids[NODE_2][WIT_V0][1], False) #block 428
|
|
||||||
self.success_mine(self.nodes[2], wit_ids[NODE_2][WIT_V1][1], False) #block 429
|
|
||||||
|
|
||||||
self.log.info("Verify unsigned p2sh witness txs without a redeem script are invalid")
|
self.log.info("Verify unsigned p2sh witness txs without a redeem script are invalid")
|
||||||
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V0][1], False)
|
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V0][1], False)
|
||||||
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V1][1], False)
|
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag", p2sh_ids[NODE_2][WIT_V1][1], False)
|
||||||
|
|
||||||
self.log.info("Verify unsigned p2sh witness txs with a redeem script in versionbits-settings blocks are valid before the fork")
|
self.nodes[2].generate(4) # blocks 428-431
|
||||||
self.success_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V0][1], False, witness_script(False, self.pubkey[2])) #block 430
|
|
||||||
self.success_mine(self.nodes[2], p2sh_ids[NODE_2][WIT_V1][1], False, witness_script(True, self.pubkey[2])) #block 431
|
|
||||||
|
|
||||||
self.log.info("Verify previous witness txs skipped for mining can now be mined")
|
self.log.info("Verify previous witness txs skipped for mining can now be mined")
|
||||||
assert_equal(len(self.nodes[2].getrawmempool()), 4)
|
assert_equal(len(self.nodes[2].getrawmempool()), 4)
|
||||||
|
|
|
@ -1914,7 +1914,6 @@ class SegWitTest(BitcoinTestFramework):
|
||||||
self.test_unnecessary_witness_before_segwit_activation()
|
self.test_unnecessary_witness_before_segwit_activation()
|
||||||
self.test_witness_tx_relay_before_segwit_activation()
|
self.test_witness_tx_relay_before_segwit_activation()
|
||||||
self.test_block_relay(segwit_activated=False)
|
self.test_block_relay(segwit_activated=False)
|
||||||
self.test_p2sh_witness(segwit_activated=False)
|
|
||||||
self.test_standardness_v0(segwit_activated=False)
|
self.test_standardness_v0(segwit_activated=False)
|
||||||
|
|
||||||
sync_blocks(self.nodes)
|
sync_blocks(self.nodes)
|
||||||
|
|
Loading…
Reference in a new issue