Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_p2p_getavaaddr.py
Show First 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | def getavaaddr_outbound_test(self): | ||||
"Check we send a getavaaddr message to our avalanche outbound peers") | "Check we send a getavaaddr message to our avalanche outbound peers") | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
# Get rid of previously connected nodes | # Get rid of previously connected nodes | ||||
node.disconnect_p2ps() | node.disconnect_p2ps() | ||||
avapeers = [] | avapeers = [] | ||||
for i in range(16): | for i in range(16): | ||||
avapeer = P2PInterface() | avapeer = AvaP2PInterface() | ||||
node.add_outbound_p2p_connection( | node.add_outbound_p2p_connection( | ||||
avapeer, | avapeer, | ||||
p2p_idx=i, | p2p_idx=i, | ||||
connection_type="avalanche", | connection_type="avalanche", | ||||
services=NODE_NETWORK | NODE_AVALANCHE, | services=NODE_NETWORK | NODE_AVALANCHE, | ||||
) | ) | ||||
avapeers.append(avapeer) | avapeers.append(avapeer) | ||||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |