test: fix block tests of invalid_txs
This commit is contained in:
1 parent
35bf3f8839
commit
1a689a2c88
2 files changed
+6
-2
No files matched your search
@@ -153,6 +153,11 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
for TxTemplate in invalid_txs.iter_all_templates():
|
||||
template = TxTemplate(spend_tx=attempt_spend_tx)
|
||||
|
||||
# belt-and-suspenders checking we won't pass up validating something
|
||||
# we expect a disconnect from
|
||||
if template.expect_disconnect:
|
||||
assert not template.valid_in_block
|
||||
|
||||
if template.valid_in_block:
|
||||
continue
|
||||
|
||||
|
||||
Reference in new issue
Block a user