@@ -150,19 +150,11 @@ def run_test(self):
150
150
self .skip_mine (self .nodes [2 ], p2sh_ids [NODE_2 ][WIT_V0 ][0 ], True ) #block 426
151
151
self .skip_mine (self .nodes [2 ], p2sh_ids [NODE_2 ][WIT_V1 ][0 ], True ) #block 427
152
152
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
-
159
153
self .log .info ("Verify unsigned p2sh witness txs without a redeem script are invalid" )
160
154
self .fail_accept (self .nodes [2 ], "mandatory-script-verify-flag" , p2sh_ids [NODE_2 ][WIT_V0 ][1 ], False )
161
155
self .fail_accept (self .nodes [2 ], "mandatory-script-verify-flag" , p2sh_ids [NODE_2 ][WIT_V1 ][1 ], False )
162
156
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
166
158
167
159
self .log .info ("Verify previous witness txs skipped for mining can now be mined" )
168
160
assert_equal (len (self .nodes [2 ].getrawmempool ()), 4 )
0 commit comments