Add RepairWeight to track votes seen in gossip for weighted repair (#10903)

* Add RepairWeight

Co-authored-by: Carl <carl@solana.com>
This commit is contained in:
carllin
2020-07-06 22:49:40 -07:00
committed by GitHub
parent 119949d4d8
commit 3f6042d8b3
6 changed files with 1252 additions and 9 deletions

View File

@ -71,6 +71,8 @@ pub struct RepairStats {
pub shred: RepairStatsGroup,
pub highest_shred: RepairStatsGroup,
pub orphan: RepairStatsGroup,
pub get_best_orphans_us: u64,
pub get_best_shreds_us: u64,
}
#[derive(Default, Debug)]
@ -177,6 +179,7 @@ impl RepairService {
let mut repair_timing = RepairTiming::default();
let mut last_stats = Instant::now();
let duplicate_slot_repair_statuses = HashMap::new();
Self::initialize_epoch_slots(
blockstore,
&cluster_info,