From d6eda1fec50f9a872f466119946be055676cfbb8 Mon Sep 17 00:00:00 2001 From: Brennan Date: Mon, 9 Sep 2024 12:22:34 -0700 Subject: [PATCH] retire dead code (#2868) --- core/src/replay_stage.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/core/src/replay_stage.rs b/core/src/replay_stage.rs index 4bf1f5cef37d73..723a91fb9f9a15 100644 --- a/core/src/replay_stage.rs +++ b/core/src/replay_stage.rs @@ -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, @@ -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, bank_forks: &Arc>,