solana/core
behzad nouri 7a789e0763
filters for recent contact-infos when checking for live stake (#19204)
Contact-infos are saved to disk:
https://github.com/solana-labs/solana/blob/9dfeee299/gossip/src/cluster_info.rs#L1678-L1683

and restored on validator start-up:
https://github.com/solana-labs/solana/blob/9dfeee299/core/src/validator.rs#L450

Staked nodes entries will not expire until an epoch after. So when the
validator checks for online stake it is erroneously picking up
contact-infos restored from disk, which breaks the entire
wait-for-supermajority logic:
https://github.com/solana-labs/solana/blob/9dfeee299/core/src/validator.rs#L1515-L1561

This commit adds an extra check for the age of contact-info entries and
filters out old ones.
2021-08-13 12:12:40 +00:00
..
benches Move tower storage into its own module 2021-08-11 00:20:46 -07:00
src filters for recent contact-infos when checking for live stake (#19204) 2021-08-13 12:12:40 +00:00
tests Add test for snapshots with background services (#19158) 2021-08-12 10:18:20 -05:00
.gitignore
Cargo.toml chore: bump libc from 0.2.98 to 0.2.99 (#19142) 2021-08-10 10:54:54 -06:00
build.rs