HomePhabricator

[avalanche] Detect when more nodes are needed

Description

[avalanche] Detect when more nodes are needed

Summary:
If the peer manager fails to find an available node during a call to selectNode(), it will latch a flag that can be used to trigger requesting more avalanche node addresses. The latch is atomic and cleared on read so we can loop over it in a network thread (out of scope for this diff).

Ref T1696.

Test Plan:

ninja check-avalanche

Reviewers: #bitcoin_abc, tyler-smith

Reviewed By: #bitcoin_abc, tyler-smith

Subscribers: tyler-smith

Maniphest Tasks: T1696

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

Details

Provenance
FabienAuthored on Feb 10 2022, 12:50
FabienPushed on Feb 17 2022, 10:37
Reviewer
Restricted Project
Differential Revision
D11034: [avalanche] Detect when more nodes are needed
Parents
rABC42fa8032b212: [avalanche] Send a getavaaddr message to our avalanche outbound peers
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task