Weight repair slots based on vote stake (#10741)

* Weight repair slots based on vote stake

* Add test
This commit is contained in:
sakridge
2020-06-22 20:27:45 -07:00
committed by GitHub
parent 2ba8fc5243
commit cabd0a09c3
5 changed files with 147 additions and 27 deletions

View File

@ -3,6 +3,7 @@
//!
use crate::{
cluster_info::ClusterInfo,
cluster_info_vote_listener::VoteTracker,
cluster_slots::ClusterSlots,
repair_response,
repair_service::{RepairInfo, RepairService},
@ -300,6 +301,7 @@ impl WindowService {
leader_schedule_cache: &Arc<LeaderScheduleCache>,
shred_filter: F,
cluster_slots: Arc<ClusterSlots>,
vote_tracker: Arc<VoteTracker>,
) -> WindowService
where
F: 'static
@ -316,6 +318,7 @@ impl WindowService {
cluster_info.clone(),
repair_info,
cluster_slots,
vote_tracker,
);
let (insert_sender, insert_receiver) = unbounded();