mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-29 00:08:25 +02:00
test: ensure reason is checked for invalid blocks rejection
This commit is contained in:
@@ -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