test: fix block tests of invalid_txs

This commit is contained in:
Greg Sanders committed 2025-05-22 10:30:13 -04:00
1 parent 35bf3f8839
commit 1a689a2c88
2 files changed
+6 -2

No files matched your search

+5
View File
@@ -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