mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-26 22:08:58 +01:00
net: update misbehavior logging for oversized messages
so that oversized ADDR, GETDATA, HEADERS and INV messages print the same consistent debug logs.
This commit is contained in:
@@ -49,9 +49,9 @@ class AddrTest(BitcoinTestFramework):
|
||||
addr_source = self.nodes[0].add_p2p_connection(P2PInterface())
|
||||
msg = msg_addr()
|
||||
|
||||
self.log.info('Send too large addr message')
|
||||
self.log.info('Send too-large addr message')
|
||||
msg.addrs = ADDRS * 101
|
||||
with self.nodes[0].assert_debug_log(['message addr size() = 1010']):
|
||||
with self.nodes[0].assert_debug_log(['addr message size = 1010']):
|
||||
addr_source.send_and_ping(msg)
|
||||
|
||||
self.log.info('Check that addr message content is relayed and added to addrman')
|
||||
|
||||
Reference in New Issue
Block a user