Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_p2p_getavaaddr.py
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | def address_test(self, maxaddrtosend, num_proof, num_avanode): | ||||
# Check we have what we expect | # Check we have what we expect | ||||
def all_nodes_connected(): | def all_nodes_connected(): | ||||
avapeers = node.getavalanchepeerinfo() | avapeers = node.getavalanchepeerinfo() | ||||
if len(avapeers) != num_proof: | if len(avapeers) != num_proof: | ||||
return False | return False | ||||
for avapeer in avapeers: | for avapeer in avapeers: | ||||
if len(avapeer['nodes']) != num_avanode: | if avapeer['nodecount'] != num_avanode: | ||||
return False | return False | ||||
return True | return True | ||||
self.wait_until(all_nodes_connected) | self.wait_until(all_nodes_connected) | ||||
# Force the availability score to diverge between the responding and the | # Force the availability score to diverge between the responding and the | ||||
# muted nodes. | # muted nodes. | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |