HomePhabricator

[avalanche] Make `isConflictingProofPreferred` a comparator

Description

[avalanche] Make isConflictingProofPreferred a comparator

Summary:
This was intended to be a peer manager static method, but it will eventually be used in the orphan proof pool as well, so let make it a proper comparator.

Ref T1854.

Supersedes D10404.
Depends on D10435.

Test Plan:

ninja all check-avalanche

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Maniphest Tasks: T1854

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

Details

Provenance
FabienAuthored on Nov 5 2021, 13:24
FabienPushed on Nov 18 2021, 08:34
Reviewer
Restricted Project
Differential Revision
D10439: [avalanche] Make `isConflictingProofPreferred` a comparator
Parents
rABC0c8a406eeb14: [avalanche] Store proofs associated with utxos instead of peer ids
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task