Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/peermanager.h
Show First 20 Lines • Show All 401 Lines • ▼ Show 20 Lines | public: | ||||
* Perform consistency check on internal data structures. | * Perform consistency check on internal data structures. | ||||
*/ | */ | ||||
bool verify() const; | bool verify() const; | ||||
// Accessors. | // Accessors. | ||||
uint64_t getSlotCount() const { return slotCount; } | uint64_t getSlotCount() const { return slotCount; } | ||||
uint64_t getFragmentation() const { return fragmentation; } | uint64_t getFragmentation() const { return fragmentation; } | ||||
const ProofPool &getValidProofPool() const { return validProofPool; } | |||||
const ProofPool &getConflictingProofPool() const { | |||||
return conflictingProofPool; | |||||
} | |||||
const ProofPool &getImmatureProofPool() const { return immatureProofPool; } | |||||
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 isImmature(const ProofId &proofid) const; | bool isImmature(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(); | ||||
} | } | ||||
Show All 30 Lines |