HomePhabricator

[avalanche] Add node related functions to the peermanager

Description

[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.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D6822

Details

Provenance
deadalnixAuthored on Jul 3 2020, 15:01
deadalnixPushed on Jul 6 2020, 12:37
Reviewer
Restricted Project
Differential Revision
D6822: [avalanche] Add node related functions to the peermanager
Parents
rABCb406ddfc609f: [avalanche] Add the notion of Peer to the PeerManager
Branches
Unknown
Tags
Unknown