Remove redundant epoch_schedule from AccountsPackage

This commit is contained in:
Jason Davis 2022-04-14 07:22:25 -05:00 committed by Jason
parent 36c0bdaa78
commit c2f7f2fff8
3 changed files with 1 additions and 6 deletions

View File

@ -306,7 +306,6 @@ mod tests {
genesis_config::ClusterType,
hash::hash,
signature::{Keypair, Signer},
sysvar::epoch_schedule::EpochSchedule,
},
solana_streamer::socket::SocketAddrSpace,
std::str::FromStr,
@ -389,7 +388,6 @@ mod tests {
cluster_type: ClusterType::MainnetBeta,
snapshot_type: None,
accounts: Arc::clone(&accounts),
epoch_schedule: EpochSchedule::default(),
rent_collector: RentCollector::default(),
};

View File

@ -12,7 +12,7 @@ use {
},
log::*,
solana_sdk::{
clock::Slot, genesis_config::ClusterType, hash::Hash, sysvar::epoch_schedule::EpochSchedule,
clock::Slot, genesis_config::ClusterType, hash::Hash,
},
std::{
fs,
@ -45,7 +45,6 @@ pub struct AccountsPackage {
pub cluster_type: ClusterType,
pub snapshot_type: Option<SnapshotType>,
pub accounts: Arc<Accounts>,
pub epoch_schedule: EpochSchedule,
pub rent_collector: RentCollector,
}
@ -111,7 +110,6 @@ impl AccountsPackage {
cluster_type: bank.cluster_type(),
snapshot_type,
accounts: bank.accounts(),
epoch_schedule: *bank.epoch_schedule(),
rent_collector: bank.rent_collector().clone(),
})
}

View File

@ -3451,7 +3451,6 @@ mod tests {
cluster_type: solana_sdk::genesis_config::ClusterType::Development,
snapshot_type,
accounts: Arc::new(crate::accounts::Accounts::default_for_tests()),
epoch_schedule: solana_sdk::epoch_schedule::EpochSchedule::default(),
rent_collector: crate::rent_collector::RentCollector::default(),
}
}