Page MenuHomePhabricator

[avalanche] Make `isConflictingProofPreferred` a comparator
ClosedPublic

Authored by Fabien on Nov 8 2021, 08:09.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Maniphest Tasks
Restricted Maniphest Task
Commits
rABC5f0c2f9d3060: [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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_conflictingproofcomparator
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17217
Build 34265: Build Difflint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 34264: arc lint + arc unit