Page MenuHomePhabricator

[avalanche] Only select from peers which have an actual node attached
ClosedPublic

Authored by deadalnix on Dec 6 2020, 16:53.

Details

Summary

This doesn't change the behavior to the extent that selecting a peer with no node would trigger another selection round, but this wasteful.

Instead, we maintain the node count attached to the peer and act accordingly.

Depends on D8606

Test Plan

Addd code in PeerManager::verify to check that the node count is tracked properly.
Existing tests ensure that the observable behavior is not altered in any way that matters.