diff --git a/src/avalanche/peermanager.h b/src/avalanche/peermanager.h --- a/src/avalanche/peermanager.h +++ b/src/avalanche/peermanager.h @@ -418,11 +418,6 @@ bool isImmature(const ProofId &proofid) const; bool isInConflictingPool(const ProofId &proofid) const; - size_t getConflictingProofCount() { - return conflictingProofPool.countProofs(); - } - size_t getImmatureProofCount() { return immatureProofPool.countProofs(); } - const ProofRadixTree &getShareableProofsSnapshot() const { return shareableProofs; } diff --git a/src/rpc/avalanche.cpp b/src/rpc/avalanche.cpp --- a/src/rpc/avalanche.cpp +++ b/src/rpc/avalanche.cpp @@ -792,10 +792,12 @@ proofCount - connectedProofCount); network.pushKV("finalized_proof_count", finalizedProofCount); - network.pushKV("conflicting_proof_count", - uint64_t(pm.getConflictingProofCount())); - network.pushKV("immature_proof_count", - uint64_t(pm.getImmatureProofCount())); + network.pushKV( + "conflicting_proof_count", + uint64_t(pm.getConflictingProofPool().countProofs())); + network.pushKV( + "immature_proof_count", + uint64_t(pm.getImmatureProofPool().countProofs())); network.pushKV("total_stake_amount", totalStakes); network.pushKV("connected_stake_amount", connectedStakes);