test: ensure reason is checked for invalid blocks rejection
This commit is contained in:
1 parent
1a689a2c88
commit
8fcd684505
2 files changed
+6
No files matched your search
@@ -161,6 +161,8 @@ class FullBlockTest(BitcoinTestFramework):
|
||||
if template.valid_in_block:
|
||||
continue
|
||||
|
||||
assert template.block_reject_reason or template.reject_reason
|
||||
|
||||
self.log.info(f"Reject block with invalid tx: {TxTemplate.__name__}")
|
||||
blockname = f"for_invalid.{TxTemplate.__name__}"
|
||||
self.next_block(blockname)
|
||||
|
||||
Reference in new issue
Block a user