Skip to content

Commit

Permalink
only propagate staked NodeInstances (#2511)
Browse files Browse the repository at this point in the history
only propagate staked NodeInstances

Co-authored-by: greg <[email protected]>
  • Loading branch information
gregcusack and gregcusack authored Aug 9, 2024
1 parent 497941f commit 2b9b50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,13 +433,13 @@ fn retain_staked(values: &mut Vec<CrdsValue>, stakes: &HashMap<Pubkey, u64>) {
// Otherwise unstaked voting nodes will show up with no version in
// the various dashboards.
CrdsData::Version(_) => true,
CrdsData::NodeInstance(_) => true,
CrdsData::AccountsHashes(_) => true,
CrdsData::LowestSlot(_, _)
| CrdsData::LegacyVersion(_)
| CrdsData::DuplicateShred(_, _)
| CrdsData::RestartHeaviestFork(_)
| CrdsData::RestartLastVotedForkSlots(_) => {
| CrdsData::RestartLastVotedForkSlots(_)
| CrdsData::NodeInstance(_) => {
let stake = stakes.get(&value.pubkey()).copied();
stake.unwrap_or_default() >= MIN_STAKE_FOR_GOSSIP
}
Expand Down

0 comments on commit 2b9b50a

Please sign in to comment.