Page MenuHomePhabricator

[avalanche] Add node related functions to the peermanager
ClosedPublic

Authored by deadalnix on Jul 5 2020, 00:31.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC785a2f794bac: [avalanche] Add node related functions to the peermanager
Summary

This adds a way to register nodes to the PeerManager and select one available for query.

The logic is similar to what is found in AvalancheProcessor and is meant to eventually replace it.

Depends on D6818

Test Plan
ninja all check-avalanche

Due to the inherent randomness of the process, fully unittesting this is not possible and once more things are pieced together, inetgration tests will have to cover it.

Event Timeline

Flatten things such as one multi_index is used and all nodes are in it.

This revision is now accepted and ready to land.Jul 6 2020, 06:20