Skip to content

Commit

Permalink
retire dead code (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-solana authored Sep 9, 2024
1 parent 300701e commit d6eda1f
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ use {
solana_sdk::{
clock::{BankId, Slot, MAX_PROCESSING_AGE, NUM_CONSECUTIVE_LEADER_SLOTS},
feature_set,
genesis_config::ClusterType,
hash::Hash,
pubkey::Pubkey,
saturating_add_assign,
Expand Down Expand Up @@ -4083,17 +4082,6 @@ impl ReplayStage {
}
}

pub fn get_unlock_switch_vote_slot(cluster_type: ClusterType) -> Slot {
match cluster_type {
ClusterType::Development => 0,
ClusterType::Devnet => 0,
// Epoch 63
ClusterType::Testnet => 21_692_256,
// 400_000 slots into epoch 61
ClusterType::MainnetBeta => 26_752_000,
}
}

fn log_heaviest_fork_failures(
heaviest_fork_failures: &Vec<HeaviestForkFailures>,
bank_forks: &Arc<RwLock<BankForks>>,
Expand Down

0 comments on commit d6eda1f

Please sign in to comment.