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:
Jon Atack
2020-06-17 11:08:56 +02:00
parent 5f72ddb7ee
commit 9fa494dc09
3 changed files with 7 additions and 7 deletions

View File

@@ -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')