From f3faba5ca9a19a47d178c9c41a542c6dba9daed5 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 28 Dec 2020 22:18:33 +0000 Subject: [PATCH] Remove Testnet-specific old code (#14305) (#14315) (cherry picked from commit 7893e2e307c513c5e089d4a41eef6f9973c380ef) Co-authored-by: Ryo Onodera --- runtime/src/snapshot_utils.rs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index b89a9acef6..b5b900eada 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/src/snapshot_utils.rs @@ -14,12 +14,7 @@ use fs_extra::dir::CopyOptions; use log::*; use regex::Regex; use solana_measure::measure::Measure; -use solana_sdk::{ - clock::Slot, - genesis_config::{ClusterType, GenesisConfig}, - hash::Hash, - pubkey::Pubkey, -}; +use solana_sdk::{clock::Slot, genesis_config::GenesisConfig, hash::Hash, pubkey::Pubkey}; use std::collections::HashSet; use std::sync::Arc; use std::{ @@ -626,18 +621,6 @@ pub fn bank_from_archive>( if !bank.verify_snapshot_bank() { panic!("Snapshot bank for slot {} failed to verify", bank.slot()); } - if genesis_config.cluster_type == ClusterType::Testnet { - // remove me after we transitions to the fixed rent distribution with no overflow - let old = bank.set_capitalization(); - if old != bank.capitalization() { - warn!( - "Capitalization was recalculated: {} => {}", - old, - bank.capitalization() - ) - } - } - measure.stop(); info!("{}", measure);