exempts AccountsHashes from stake check (#21565)
Otherwise getHealth fails if account hashes are not propagated.
This commit is contained in:
parent
976eb81d4f
commit
9886366977
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue