For local testing we don’t need to rely on p2p messages just to assert a reject reason.
Replace reading p2p messages with reading from the debug log file.
For local testing we don’t need to rely on p2p messages just to assert a reject reason.
Replace reading p2p messages with reading from the debug log file.
823@@ -824,7 +824,7 @@ def run_test(self):
824 tx.vin.append(CTxIn(COutPoint(b64a.vtx[1].sha256, 0)))
825 b64a = self.update_block("64a", [tx])
826 assert_equal(len(b64a.serialize()), MAX_BLOCK_BASE_SIZE + 8)
827- self.sync_blocks([b64a], success=False, reject_code=1, reject_reason=b'error parsing message')
828+ self.sync_blocks([b64a], success=False, reject_reason='non-canonical ReadCompactSize(): iostream error')
This is non-canonical ReadCompactSize(): iostream stream error
on Windows. See https://ci.appveyor.com/project/DrahtBot/bitcoin/build/master.972. Is there a way to specify the second variant? Or just discard the message to be non-canonical ReadCompactSize()
Fixed in #14007