Removes unused AccountsHashFaultInjector (#34977)
This commit is contained in:
parent
59c2f35609
commit
02062a6b6a
|
@ -33,8 +33,6 @@ use {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
pub type AccountsHashFaultInjector = fn(&Hash, Slot) -> Option<Hash>;
|
|
||||||
|
|
||||||
pub struct AccountsHashVerifier {
|
pub struct AccountsHashVerifier {
|
||||||
t_accounts_hash_verifier: JoinHandle<()>,
|
t_accounts_hash_verifier: JoinHandle<()>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
pub use solana_perf::report_target_features;
|
pub use solana_perf::report_target_features;
|
||||||
use {
|
use {
|
||||||
crate::{
|
crate::{
|
||||||
accounts_hash_verifier::{AccountsHashFaultInjector, AccountsHashVerifier},
|
accounts_hash_verifier::AccountsHashVerifier,
|
||||||
admin_rpc_post_init::AdminRpcRequestMetadataPostInit,
|
admin_rpc_post_init::AdminRpcRequestMetadataPostInit,
|
||||||
banking_trace::{self, BankingTracer},
|
banking_trace::{self, BankingTracer},
|
||||||
cache_block_meta_service::{CacheBlockMetaSender, CacheBlockMetaService},
|
cache_block_meta_service::{CacheBlockMetaSender, CacheBlockMetaService},
|
||||||
|
@ -223,7 +223,6 @@ pub struct ValidatorConfig {
|
||||||
pub repair_validators: Option<HashSet<Pubkey>>, // None = repair from all
|
pub repair_validators: Option<HashSet<Pubkey>>, // None = repair from all
|
||||||
pub repair_whitelist: Arc<RwLock<HashSet<Pubkey>>>, // Empty = repair with all
|
pub repair_whitelist: Arc<RwLock<HashSet<Pubkey>>>, // Empty = repair with all
|
||||||
pub gossip_validators: Option<HashSet<Pubkey>>, // None = gossip with all
|
pub gossip_validators: Option<HashSet<Pubkey>>, // None = gossip with all
|
||||||
pub accounts_hash_fault_injector: Option<AccountsHashFaultInjector>,
|
|
||||||
pub accounts_hash_interval_slots: u64,
|
pub accounts_hash_interval_slots: u64,
|
||||||
pub max_genesis_archive_unpacked_size: u64,
|
pub max_genesis_archive_unpacked_size: u64,
|
||||||
pub wal_recovery_mode: Option<BlockstoreRecoveryMode>,
|
pub wal_recovery_mode: Option<BlockstoreRecoveryMode>,
|
||||||
|
@ -294,7 +293,6 @@ impl Default for ValidatorConfig {
|
||||||
repair_validators: None,
|
repair_validators: None,
|
||||||
repair_whitelist: Arc::new(RwLock::new(HashSet::default())),
|
repair_whitelist: Arc::new(RwLock::new(HashSet::default())),
|
||||||
gossip_validators: None,
|
gossip_validators: None,
|
||||||
accounts_hash_fault_injector: None,
|
|
||||||
accounts_hash_interval_slots: std::u64::MAX,
|
accounts_hash_interval_slots: std::u64::MAX,
|
||||||
max_genesis_archive_unpacked_size: MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
|
max_genesis_archive_unpacked_size: MAX_GENESIS_ARCHIVE_UNPACKED_SIZE,
|
||||||
wal_recovery_mode: None,
|
wal_recovery_mode: None,
|
||||||
|
|
|
@ -31,7 +31,6 @@ pub fn safe_clone_config(config: &ValidatorConfig) -> ValidatorConfig {
|
||||||
repair_whitelist: config.repair_whitelist.clone(),
|
repair_whitelist: config.repair_whitelist.clone(),
|
||||||
gossip_validators: config.gossip_validators.clone(),
|
gossip_validators: config.gossip_validators.clone(),
|
||||||
accounts_hash_interval_slots: config.accounts_hash_interval_slots,
|
accounts_hash_interval_slots: config.accounts_hash_interval_slots,
|
||||||
accounts_hash_fault_injector: config.accounts_hash_fault_injector,
|
|
||||||
max_genesis_archive_unpacked_size: config.max_genesis_archive_unpacked_size,
|
max_genesis_archive_unpacked_size: config.max_genesis_archive_unpacked_size,
|
||||||
wal_recovery_mode: config.wal_recovery_mode.clone(),
|
wal_recovery_mode: config.wal_recovery_mode.clone(),
|
||||||
run_verification: config.run_verification,
|
run_verification: config.run_verification,
|
||||||
|
|
Loading…
Reference in New Issue