Skip to content

Commit

Permalink
fixup a match
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo committed Oct 3, 2021
1 parent 5e9e768 commit 490fc04
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ fn retain_staked(values: &mut Vec<CrdsValue>, stakes: &HashMap<Pubkey, u64>) {
// 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,
Expand All @@ -383,8 +383,6 @@ fn retain_staked(values: &mut Vec<CrdsValue>, stakes: &HashMap<Pubkey, u64>) {
let stake = stakes.get(&value.pubkey()).copied();
stake.unwrap_or_default() >= MIN_STAKE_FOR_GOSSIP
}
// Unstaked nodes can still serve snapshots.
CrdsData::IncrementalSnapshotHashes(_) => true,
}
})
}
Expand Down

0 comments on commit 490fc04

Please sign in to comment.