From b1e9996eae6479a89472b338402d0ac23b1d7e7f Mon Sep 17 00:00:00 2001 From: Carl Date: Sun, 12 Apr 2020 17:20:52 -0700 Subject: [PATCH] Cleanup --- core/src/consensus.rs | 2 +- core/src/progress_map.rs | 1 - core/src/replay_stage.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/core/src/consensus.rs b/core/src/consensus.rs index a6fee1cf9512ca..a3c1bb36236b89 100644 --- a/core/src/consensus.rs +++ b/core/src/consensus.rs @@ -771,7 +771,7 @@ pub mod test { ) { self.progress .entry(slot) - .or_insert_with(|| ForkProgress::new(Hash::default(), None, None)) + .or_insert_with(|| ForkProgress::new(Hash::default(), None, None, 0, 0)) .fork_stats .lockout_intervals .entry(lockout_interval.1) diff --git a/core/src/progress_map.rs b/core/src/progress_map.rs index e642decade8295..3f511d5eb1261f 100644 --- a/core/src/progress_map.rs +++ b/core/src/progress_map.rs @@ -94,7 +94,6 @@ pub(crate) struct ForkProgress { // so these stats do not span all of time pub(crate) num_blocks_on_fork: u64, pub(crate) num_dropped_blocks_on_fork: u64, - pub(crate) stake_ranges: StakeRanges, } impl ForkProgress { diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index ab84186dac9a05..33f0b21c4e9723 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -2758,7 +2758,7 @@ pub(crate) mod tests { &VoteTracker::default(), &ClusterSlots::default(), &vote_simulator.bank_forks, - &mut HashSet::new(), + &mut PubkeyReferences::default(), ); assert_eq!(