Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/avalanche.cpp
Show First 20 Lines • Show All 786 Lines • ▼ Show 20 Lines | return RPCHelpMan{ | ||||
}); | }); | ||||
network.pushKV("proof_count", proofCount); | network.pushKV("proof_count", proofCount); | ||||
network.pushKV("connected_proof_count", connectedProofCount); | network.pushKV("connected_proof_count", connectedProofCount); | ||||
network.pushKV("dangling_proof_count", | network.pushKV("dangling_proof_count", | ||||
proofCount - connectedProofCount); | proofCount - connectedProofCount); | ||||
network.pushKV("finalized_proof_count", finalizedProofCount); | network.pushKV("finalized_proof_count", finalizedProofCount); | ||||
network.pushKV("conflicting_proof_count", | network.pushKV( | ||||
uint64_t(pm.getConflictingProofCount())); | "conflicting_proof_count", | ||||
network.pushKV("immature_proof_count", | uint64_t(pm.getConflictingProofPool().countProofs())); | ||||
uint64_t(pm.getImmatureProofCount())); | network.pushKV( | ||||
"immature_proof_count", | |||||
uint64_t(pm.getImmatureProofPool().countProofs())); | |||||
network.pushKV("total_stake_amount", totalStakes); | network.pushKV("total_stake_amount", totalStakes); | ||||
network.pushKV("connected_stake_amount", connectedStakes); | network.pushKV("connected_stake_amount", connectedStakes); | ||||
network.pushKV("dangling_stake_amount", | network.pushKV("dangling_stake_amount", | ||||
totalStakes - connectedStakes); | totalStakes - connectedStakes); | ||||
const uint64_t pendingNodes = pm.getPendingNodeCount(); | const uint64_t pendingNodes = pm.getPendingNodeCount(); | ||||
network.pushKV("node_count", connectedNodeCount + pendingNodes); | network.pushKV("node_count", connectedNodeCount + pendingNodes); | ||||
▲ Show 20 Lines • Show All 523 Lines • Show Last 20 Lines |