Removes unused parameters from AccountsHashVerifier::new() (#34976)
This commit is contained in:
parent
0d117d420c
commit
e1260a9604
|
@ -10,7 +10,6 @@ use {
|
||||||
},
|
},
|
||||||
sorted_storages::SortedStorages,
|
sorted_storages::SortedStorages,
|
||||||
},
|
},
|
||||||
solana_gossip::cluster_info::ClusterInfo,
|
|
||||||
solana_measure::measure_us,
|
solana_measure::measure_us,
|
||||||
solana_runtime::{
|
solana_runtime::{
|
||||||
serde_snapshot::BankIncrementalSnapshotPersistence,
|
serde_snapshot::BankIncrementalSnapshotPersistence,
|
||||||
|
@ -46,8 +45,6 @@ impl AccountsHashVerifier {
|
||||||
accounts_package_receiver: Receiver<AccountsPackage>,
|
accounts_package_receiver: Receiver<AccountsPackage>,
|
||||||
snapshot_package_sender: Option<Sender<SnapshotPackage>>,
|
snapshot_package_sender: Option<Sender<SnapshotPackage>>,
|
||||||
exit: Arc<AtomicBool>,
|
exit: Arc<AtomicBool>,
|
||||||
_cluster_info: Arc<ClusterInfo>,
|
|
||||||
_accounts_hash_fault_injector: Option<AccountsHashFaultInjector>,
|
|
||||||
snapshot_config: SnapshotConfig,
|
snapshot_config: SnapshotConfig,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
// If there are no accounts packages to process, limit how often we re-check
|
// If there are no accounts packages to process, limit how often we re-check
|
||||||
|
|
|
@ -778,8 +778,6 @@ impl Validator {
|
||||||
accounts_package_receiver,
|
accounts_package_receiver,
|
||||||
snapshot_package_sender,
|
snapshot_package_sender,
|
||||||
exit.clone(),
|
exit.clone(),
|
||||||
cluster_info.clone(),
|
|
||||||
config.accounts_hash_fault_injector,
|
|
||||||
config.snapshot_config.clone(),
|
config.snapshot_config.clone(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -197,8 +197,6 @@ impl BackgroundServices {
|
||||||
accounts_package_receiver,
|
accounts_package_receiver,
|
||||||
Some(snapshot_package_sender),
|
Some(snapshot_package_sender),
|
||||||
exit.clone(),
|
exit.clone(),
|
||||||
cluster_info,
|
|
||||||
None,
|
|
||||||
snapshot_config.clone(),
|
snapshot_config.clone(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1044,8 +1044,6 @@ fn test_snapshots_with_background_services(
|
||||||
accounts_package_receiver,
|
accounts_package_receiver,
|
||||||
Some(snapshot_package_sender),
|
Some(snapshot_package_sender),
|
||||||
exit.clone(),
|
exit.clone(),
|
||||||
cluster_info,
|
|
||||||
None,
|
|
||||||
snapshot_test_config.snapshot_config.clone(),
|
snapshot_test_config.snapshot_config.clone(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ use {
|
||||||
solana_geyser_plugin_manager::geyser_plugin_service::{
|
solana_geyser_plugin_manager::geyser_plugin_service::{
|
||||||
GeyserPluginService, GeyserPluginServiceError,
|
GeyserPluginService, GeyserPluginServiceError,
|
||||||
},
|
},
|
||||||
solana_gossip::{cluster_info::ClusterInfo, contact_info::ContactInfo},
|
|
||||||
solana_ledger::{
|
solana_ledger::{
|
||||||
bank_forks_utils::{self, BankForksUtilsError},
|
bank_forks_utils::{self, BankForksUtilsError},
|
||||||
blockstore::{Blockstore, BlockstoreError},
|
blockstore::{Blockstore, BlockstoreError},
|
||||||
|
@ -41,10 +40,9 @@ use {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
solana_sdk::{
|
solana_sdk::{
|
||||||
clock::Slot, genesis_config::GenesisConfig, pubkey::Pubkey, signature::Signer,
|
clock::Slot, genesis_config::GenesisConfig, pubkey::Pubkey,
|
||||||
signer::keypair::Keypair, timing::timestamp, transaction::VersionedTransaction,
|
transaction::VersionedTransaction,
|
||||||
},
|
},
|
||||||
solana_streamer::socket::SocketAddrSpace,
|
|
||||||
solana_unified_scheduler_pool::DefaultSchedulerPool,
|
solana_unified_scheduler_pool::DefaultSchedulerPool,
|
||||||
std::{
|
std::{
|
||||||
path::{Path, PathBuf},
|
path::{Path, PathBuf},
|
||||||
|
@ -315,20 +313,12 @@ pub fn load_and_process_ledger(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let node_id = Arc::new(Keypair::new());
|
|
||||||
let cluster_info = Arc::new(ClusterInfo::new(
|
|
||||||
ContactInfo::new_localhost(&node_id.pubkey(), timestamp()),
|
|
||||||
Arc::clone(&node_id),
|
|
||||||
SocketAddrSpace::Unspecified,
|
|
||||||
));
|
|
||||||
let (accounts_package_sender, accounts_package_receiver) = crossbeam_channel::unbounded();
|
let (accounts_package_sender, accounts_package_receiver) = crossbeam_channel::unbounded();
|
||||||
let accounts_hash_verifier = AccountsHashVerifier::new(
|
let accounts_hash_verifier = AccountsHashVerifier::new(
|
||||||
accounts_package_sender.clone(),
|
accounts_package_sender.clone(),
|
||||||
accounts_package_receiver,
|
accounts_package_receiver,
|
||||||
None,
|
None,
|
||||||
exit.clone(),
|
exit.clone(),
|
||||||
cluster_info,
|
|
||||||
None,
|
|
||||||
SnapshotConfig::new_load_only(),
|
SnapshotConfig::new_load_only(),
|
||||||
);
|
);
|
||||||
let (snapshot_request_sender, snapshot_request_receiver) = crossbeam_channel::unbounded();
|
let (snapshot_request_sender, snapshot_request_receiver) = crossbeam_channel::unbounded();
|
||||||
|
|
Loading…
Reference in New Issue