HomePhabricator

[avalanche] Add a facility to check if a peer is preferred for DL

Description

[avalanche] Add a facility to check if a peer is preferred for DL

Summary:
This wraps up the access to the state's fPreferredDownload flag to
prevent code duplication.

There is no change in behavior.

Depends on D9582.

Part of T1611.

Test Plan:

ninja all check-all
./test/functional/test_runner.py p2p_inv_download

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Maniphest Tasks: T1611

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

Details

Provenance
FabienAuthored on Jun 3 2021, 10:03
FabienPushed on Jun 4 2021, 19:48
Reviewer
Restricted Project
Differential Revision
D9625: [avalanche] Add a facility to check if a peer is preferred for DL
Parents
rABCd596bf6c8e22: [avalanche] Reset the proof tracking state on peer disconnection
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task