Skip to content

Commit

Permalink
exempts AccountsHashes from stake check (solana-labs#21565)
Browse files Browse the repository at this point in the history
Otherwise getHealth fails if account hashes are not propagated.
  • Loading branch information
behzadnouri authored Dec 2, 2021
1 parent 976eb81 commit 9886366
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gossip/src/cluster_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ fn retain_staked(values: &mut Vec<CrdsValue>, stakes: &HashMap<Pubkey, u64>) {
// the various dashboards.
CrdsData::Version(_) => true,
CrdsData::NodeInstance(_) => true,
// getHealth fails if account hashes are not propagated.
CrdsData::AccountsHashes(_) => true,
CrdsData::LowestSlot(_, _)
| CrdsData::AccountsHashes(_)
| CrdsData::LegacyVersion(_)
| CrdsData::DuplicateShred(_, _) => {
let stake = stakes.get(&value.pubkey()).copied();
Expand Down

0 comments on commit 9886366

Please sign in to comment.