5#ifndef BITCOIN_AVALANCHE_REWARDRANKCOMPARATOR_H
6#define BITCOIN_AVALANCHE_REWARDRANKCOMPARATOR_H
17 const ProofId &rightProofId)
const {
18 if (leftRank != rightRank) {
20 return leftRank < rightRank;
24 if (leftContenderId != rightContenderId) {
25 return leftContenderId < rightContenderId;
29 return leftProofId < rightProofId;
bool operator()(const StakeContenderId &leftContenderId, double leftRank, const ProofId &leftProofId, const StakeContenderId &rightContenderId, double rightRank, const ProofId &rightProofId) const
StakeContenderIds are unique for each block to ensure that the peer polling for their acceptance has ...