exempts AccountsHashes from stake check (#21565)

Otherwise getHealth fails if account hashes are not propagated.
This commit is contained in:
behzad nouri 2021-12-02 18:01:32 +00:00 committed by GitHub
parent 976eb81d4f
commit 9886366977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -381,8 +381,9 @@ fn retain_staked(values: &mut Vec<CrdsValue>, stakes: &HashMap<Pubkey, u64>) {
// the various dashboards. // the various dashboards.
CrdsData::Version(_) => true, CrdsData::Version(_) => true,
CrdsData::NodeInstance(_) => true, CrdsData::NodeInstance(_) => true,
// getHealth fails if account hashes are not propagated.
CrdsData::AccountsHashes(_) => true,
CrdsData::LowestSlot(_, _) CrdsData::LowestSlot(_, _)
| CrdsData::AccountsHashes(_)
| CrdsData::LegacyVersion(_) | CrdsData::LegacyVersion(_)
| CrdsData::DuplicateShred(_, _) => { | CrdsData::DuplicateShred(_, _) => {
let stake = stakes.get(&value.pubkey()).copied(); let stake = stakes.get(&value.pubkey()).copied();