MCPcopy Create free account
hub / github.com/ElementsProject/elements / oversized_addr_test

Method oversized_addr_test

test/functional/p2p_addr_relay.py:124–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 peer.sync_send_with_ping()
123
124 def oversized_addr_test(self):
125 self.log.info('Send an addr message that is too large')
126 addr_source = self.nodes[0].add_p2p_connection(P2PInterface())
127
128 msg = self.setup_addr_msg(1010)
129 with self.nodes[0].assert_debug_log(['addr message size = 1010']):
130 addr_source.send_and_ping(msg)
131
132 self.nodes[0].disconnect_p2ps()
133
134 def relay_tests(self):
135 self.log.info('Test address relay')

Callers 1

run_testMethod · 0.95

Calls 7

setup_addr_msgMethod · 0.95
P2PInterfaceClass · 0.90
infoMethod · 0.80
add_p2p_connectionMethod · 0.45
assert_debug_logMethod · 0.45
send_and_pingMethod · 0.45
disconnect_p2psMethod · 0.45

Tested by

no test coverage detected