Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.h
Show First 20 Lines • Show All 383 Lines • ▼ Show 20 Lines | public: | ||||
ProofRef getProof(const ProofId &proofid) const; | ProofRef getProof(const ProofId &proofid) const; | ||||
bool isBoundToPeer(const ProofId &proofid) const; | bool isBoundToPeer(const ProofId &proofid) const; | ||||
bool isOrphan(const ProofId &proofid) const; | bool isOrphan(const ProofId &proofid) const; | ||||
bool isInConflictingPool(const ProofId &proofid) const; | bool isInConflictingPool(const ProofId &proofid) const; | ||||
size_t getConflictingProofCount() { | size_t getConflictingProofCount() { | ||||
return conflictingProofPool.countProofs(); | return conflictingProofPool.countProofs(); | ||||
} | } | ||||
size_t getOrphanProofCount() { return orphanProofPool.countProofs(); } | |||||
const ProofRadixTree &getShareableProofsSnapshot() const { | const ProofRadixTree &getShareableProofsSnapshot() const { | ||||
return shareableProofs; | return shareableProofs; | ||||
} | } | ||||
private: | private: | ||||
template <typename ProofContainer> | template <typename ProofContainer> | ||||
void moveToConflictingPool(const ProofContainer &proofs); | void moveToConflictingPool(const ProofContainer &proofs); | ||||
Show All 19 Lines |