From 490fc04fe830b540d215c8cee88a2cd1cc85ff0c Mon Sep 17 00:00:00 2001 From: Brooks Prumo Date: Sun, 3 Oct 2021 10:31:26 -0500 Subject: [PATCH] fixup a match --- gossip/src/cluster_info.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index 9f59fb3485102b..77aaf524bbf5fc 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -371,7 +371,7 @@ fn retain_staked(values: &mut Vec, stakes: &HashMap) { // Unstaked nodes can still help repair. CrdsData::EpochSlots(_, _) => true, // Unstaked nodes can still serve snapshots. - CrdsData::SnapshotHashes(_) => true, + CrdsData::SnapshotHashes(_) | CrdsData::IncrementalSnapshotHashes(_) => true, // Otherwise unstaked voting nodes will show up with no version in // the various dashboards. CrdsData::Version(_) => true, @@ -383,8 +383,6 @@ fn retain_staked(values: &mut Vec, stakes: &HashMap) { let stake = stakes.get(&value.pubkey()).copied(); stake.unwrap_or_default() >= MIN_STAKE_FOR_GOSSIP } - // Unstaked nodes can still serve snapshots. - CrdsData::IncrementalSnapshotHashes(_) => true, } }) }