HomePhabricator

[avalanche] Bail when selecting a peer fails too many times

Description

[avalanche] Bail when selecting a peer fails too many times

Summary:
This ensures we don't get stuck when there are no peers to select from, but entries remain in the slot list due to fragmentation.

Depends on D6809

Test Plan:

ninja all check-avalanche

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
deadalnixAuthored on Jul 1 2020, 14:47
deadalnixPushed on Jul 3 2020, 10:55
Reviewer
Restricted Project
Differential Revision
D6810: [avalanche] Bail when selecting a peer fails too many times
Parents
rABC9d4f237eedca: [avalanche] Implement compaction for the PeerManager
Branches
Unknown
Tags
Unknown