File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -270,15 +270,16 @@ def getaddr_tests(self):
270
270
full_outbound_peer .sync_with_ping ()
271
271
assert full_outbound_peer .getaddr_received ()
272
272
273
- self .log .info ('Check that we do not send a getaddr message upon connecting to a block-relay-only peer' )
273
+ self .log .info ('Check that we do not send a getaddr message to a block-relay-only or inbound peer' )
274
274
block_relay_peer = self .nodes [0 ].add_outbound_p2p_connection (AddrReceiver (), p2p_idx = 1 , connection_type = "block-relay-only" )
275
275
block_relay_peer .sync_with_ping ()
276
276
assert_equal (block_relay_peer .getaddr_received (), False )
277
277
278
- self .log .info ('Check that we answer getaddr messages only from inbound peers' )
279
278
inbound_peer = self .nodes [0 ].add_p2p_connection (AddrReceiver (send_getaddr = False ))
280
279
inbound_peer .sync_with_ping ()
280
+ assert_equal (inbound_peer .getaddr_received (), False )
281
281
282
+ self .log .info ('Check that we answer getaddr messages only from inbound peers' )
282
283
# Add some addresses to addrman
283
284
for i in range (1000 ):
284
285
first_octet = i >> 8
You can’t perform that action at this time.
0 commit comments