5#ifndef BITCOIN_AVALANCHE_PROOFCOMPARATOR_H
6#define BITCOIN_AVALANCHE_PROOFCOMPARATOR_H
20 return lhs.
get() < rhs.
get();
32 return (scoreLhs != scoreRhs) ? scoreLhs > scoreRhs
37 return (*
this)(*lhs, *rhs);
76 return (*
this)(*lhs, *rhs);
T * get()
Get allows to access the undelying pointer.
const CPubKey & getMaster() const
uint64_t getSequence() const
uint32_t getScore() const
const ProofId & getId() const
const std::vector< SignedStake > & getStakes() const
Compare conflicting proofs.
bool operator()(const ProofRef &lhs, const ProofRef &rhs) const
bool operator()(const Proof &lhs, const Proof &rhs) const
Compare proofs by score, then by id in case of equality.
bool operator()(const Proof &lhs, const Proof &rhs) const
bool operator()(const ProofRef &lhs, const ProofRef &rhs) const
Compare proof references by pointer address.
bool operator()(const ProofRef &lhs, const ProofRef &rhs) const