adds metrics tracking crds writes and votes (#20953)

This commit is contained in:
behzad nouri
2021-10-26 13:02:30 +00:00
committed by GitHub
parent cd5e690427
commit 1297a13586
14 changed files with 544 additions and 111 deletions

View File

@ -494,6 +494,7 @@ mod tests {
crate::rpc::create_validator_exit,
solana_gossip::{
contact_info::ContactInfo,
crds::GossipRoute,
crds_value::{CrdsData, CrdsValue, SnapshotHashes},
},
solana_ledger::{
@ -794,6 +795,7 @@ mod tests {
],
))),
1,
GossipRoute::LocalMessage,
)
.unwrap();
assert_eq!(rm.health_check(), "ok");
@ -810,6 +812,7 @@ mod tests {
vec![(1000 + health_check_slot_distance - 1, Hash::default())],
))),
1,
GossipRoute::LocalMessage,
)
.unwrap();
assert_eq!(rm.health_check(), "ok");
@ -826,6 +829,7 @@ mod tests {
vec![(1000 + health_check_slot_distance, Hash::default())],
))),
1,
GossipRoute::LocalMessage,
)
.unwrap();
assert_eq!(rm.health_check(), "behind");