[validation] merge all ConnectBlock debug logging code paths

This commit is contained in:
Pieter Wuille committed 2024-12-02 16:25:17 -05:00
1 parent b49df703f0
commit 492e1f0994
3 files changed
+24 -24

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ class BIP66Test(BitcoinTestFramework):
block.hashMerkleRoot = block.calc_merkle_root()
block.solve()
with self.nodes[0].assert_debug_log(expected_msgs=[f'Script validation error in block: mandatory-script-verify-flag-failed (Non-canonical DER signature)']):
with self.nodes[0].assert_debug_log(expected_msgs=[f'Block validation error: mandatory-script-verify-flag-failed (Non-canonical DER signature)']):
peer.send_and_ping(msg_block(block))
assert_equal(int(self.nodes[0].getbestblockhash(), 16), tip)
peer.sync_with_ping()