HomePhabricator

[avalanche] Delegate node management to caller

Authored by deadalnix on Nov 26 2018, 18:52.

Description

[avalanche] Delegate node management to caller

Summary:
So far, AvalancheProcessor tried to find apropriate nodes by itself. This diff delegates the responsability to the caller, which will add peer usables for avalanche using the addPeer method.

Now peers are stored in a datastructure tracking the data relevent for the peer and stored in a multi_index in order to be able to query quickly the nodes that are available for polling.

Depends on D2137

Test Plan: Updated tests to reflect behavioral changes.

Reviewers: #bitcoin_abc, jasonbcox, Fabien

Reviewed By: #bitcoin_abc, jasonbcox, Fabien

Subscribers: Fabien, jasonbcox, teamcity, schancel

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

Details

Committed
deadalnixNov 29 2018, 17:09
Pushed
schancelNov 29 2018, 20:13
Reviewer
Restricted Project
Differential Revision
D2140: [avalanche] Delegate node management to caller
Parents
rSTAGING3bb7c6c992ee: Fix some nits in bip68-112-113-p2p.py
Branches
Unknown
Tags
Unknown