Page MenuHomePhabricator

[avalanche] Add a peer candidate checking method before turning a proof into a peer
AbandonedPublic

Authored by Fabien on Nov 19 2021, 15:26.

Details

Reviewers
None
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Summary

This is a pretty simple algo: it looks at if there is another proof with a peer associated which is positionned before the candidate for each of its utxos, the this proof cannot be made a peer. Since the proof pool is expected to store conflicting proofs and orphan proofs, there might be proofs with better properties which are not suitable as peers, so the candidate can be the suitable as a peer even if not at first position for each utxo.

Ref T1854.

Depends on D10492.

Test Plan
ninja all check-avalanche

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_peermanager_isbestcandidate
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17293
Build 34414: Build Diffbuild-debug · build-diff · lint-circular-dependencies · build-clang-tidy · build-without-wallet · build-clang
Build 34413: arc lint + arc unit