Removes cluster_type from AccountsPackage (#28725)
This commit is contained in:
parent
3e395394d2
commit
064cfc70d2
|
@ -469,7 +469,6 @@ mod tests {
|
|||
rand::seq::SliceRandom,
|
||||
solana_gossip::{cluster_info::make_accounts_hashes_message, contact_info::ContactInfo},
|
||||
solana_sdk::{
|
||||
genesis_config::ClusterType,
|
||||
hash::hash,
|
||||
signature::{Keypair, Signer},
|
||||
},
|
||||
|
@ -543,7 +542,6 @@ mod tests {
|
|||
package_type: AccountsPackageType::AccountsHashVerifier,
|
||||
slot: full_snapshot_archive_interval_slots + i as u64,
|
||||
block_height: full_snapshot_archive_interval_slots + i as u64,
|
||||
cluster_type: ClusterType::MainnetBeta,
|
||||
accounts: Arc::clone(&accounts),
|
||||
..AccountsPackage::default_for_tests()
|
||||
};
|
||||
|
|
|
@ -12,9 +12,7 @@ use {
|
|||
},
|
||||
},
|
||||
log::*,
|
||||
solana_sdk::{
|
||||
clock::Slot, genesis_config::ClusterType, hash::Hash, sysvar::epoch_schedule::EpochSchedule,
|
||||
},
|
||||
solana_sdk::{clock::Slot, hash::Hash, sysvar::epoch_schedule::EpochSchedule},
|
||||
std::{
|
||||
fs,
|
||||
path::{Path, PathBuf},
|
||||
|
@ -44,7 +42,6 @@ pub struct AccountsPackage {
|
|||
pub incremental_snapshot_archives_dir: PathBuf,
|
||||
pub expected_capitalization: u64,
|
||||
pub accounts_hash_for_testing: Option<Hash>,
|
||||
pub cluster_type: ClusterType,
|
||||
pub accounts: Arc<Accounts>,
|
||||
pub epoch_schedule: EpochSchedule,
|
||||
pub rent_collector: RentCollector,
|
||||
|
@ -118,7 +115,6 @@ impl AccountsPackage {
|
|||
.to_path_buf(),
|
||||
expected_capitalization: bank.capitalization(),
|
||||
accounts_hash_for_testing,
|
||||
cluster_type: bank.cluster_type(),
|
||||
accounts: bank.accounts(),
|
||||
epoch_schedule: *bank.epoch_schedule(),
|
||||
rent_collector: bank.rent_collector().clone(),
|
||||
|
@ -142,7 +138,6 @@ impl AccountsPackage {
|
|||
incremental_snapshot_archives_dir: PathBuf::default(),
|
||||
expected_capitalization: u64::default(),
|
||||
accounts_hash_for_testing: Option::default(),
|
||||
cluster_type: ClusterType::Development,
|
||||
accounts: Arc::new(Accounts::default_for_tests()),
|
||||
epoch_schedule: EpochSchedule::default(),
|
||||
rent_collector: RentCollector::default(),
|
||||
|
|
Loading…
Reference in New Issue