Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/proofpool.h
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Lines | AddProofStatus addProofIfPreferred(const ProofRef &proof, | ||||
ConflictingProofSet &conflictingProofs); | ConflictingProofSet &conflictingProofs); | ||||
AddProofStatus addProofIfPreferred(const ProofRef &proof) { | AddProofStatus addProofIfPreferred(const ProofRef &proof) { | ||||
ConflictingProofSet dummy; | ConflictingProofSet dummy; | ||||
return addProofIfPreferred(proof, dummy); | return addProofIfPreferred(proof, dummy); | ||||
} | } | ||||
bool removeProof(ProofId proofid); | bool removeProof(ProofId proofid); | ||||
void rescan(PeerManager &peerManager); | std::unordered_set<ProofRef, SaltedProofHasher> | ||||
rescan(PeerManager &peerManager); | |||||
ProofRef getProof(const ProofId &proofid) const; | ProofRef getProof(const ProofId &proofid) const; | ||||
ProofRef getProof(const COutPoint &outpoint) const; | ProofRef getProof(const COutPoint &outpoint) const; | ||||
ProofRef getLowestScoreProof() const; | ProofRef getLowestScoreProof() const; | ||||
size_t size() const { return pool.size(); } | size_t size() const { return pool.size(); } | ||||
size_t countProofs(); | size_t countProofs(); | ||||
}; | }; | ||||
} // namespace avalanche | } // namespace avalanche | ||||
#endif // BITCOIN_AVALANCHE_PROOFPOOL_H | #endif // BITCOIN_AVALANCHE_PROOFPOOL_H |