File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,6 @@ def get_tx(self):
225
225
class InvalidOPIFConstruction (BadTxTemplate ):
226
226
reject_reason = "mandatory-script-verify-flag-failed (Invalid OP_IF construction)"
227
227
expect_disconnect = True
228
- valid_in_block = True
229
228
230
229
def get_tx (self ):
231
230
return create_tx_with_script (
@@ -260,7 +259,7 @@ def get_tx(self):
260
259
'reject_reason' : "disabled opcode" ,
261
260
'expect_disconnect' : True ,
262
261
'get_tx' : get_tx ,
263
- 'valid_in_block' : True
262
+ 'valid_in_block' : False
264
263
})
265
264
266
265
class NonStandardAndInvalid (BadTxTemplate ):
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ def run_test(self):
153
153
for TxTemplate in invalid_txs .iter_all_templates ():
154
154
template = TxTemplate (spend_tx = attempt_spend_tx )
155
155
156
+ # belt-and-suspenders checking we won't pass up validating something
157
+ # we expect a disconnect from
158
+ if template .expect_disconnect :
159
+ assert not template .valid_in_block
160
+
156
161
if template .valid_in_block :
157
162
continue
158
163
You can’t perform that action at this time.
0 commit comments