Struct solana_core::validator::ValidatorConfig
source · [−]pub struct ValidatorConfig {Show 55 fields
pub dev_halt_at_slot: Option<Slot>,
pub expected_genesis_hash: Option<Hash>,
pub expected_bank_hash: Option<Hash>,
pub expected_shred_version: Option<u16>,
pub voting_disabled: bool,
pub account_paths: Vec<PathBuf>,
pub account_shrink_paths: Option<Vec<PathBuf>>,
pub rpc_config: JsonRpcConfig,
pub accountsdb_repl_service_config: Option<AccountsDbReplServiceConfig>,
pub geyser_plugin_config_files: Option<Vec<PathBuf>>,
pub rpc_addrs: Option<(SocketAddr, SocketAddr)>,
pub pubsub_config: PubSubConfig,
pub snapshot_config: Option<SnapshotConfig>,
pub max_ledger_shreds: Option<u64>,
pub broadcast_stage_type: BroadcastStageType,
pub enable_partition: Option<Arc<AtomicBool>>,
pub enforce_ulimit_nofile: bool,
pub fixed_leader_schedule: Option<FixedSchedule>,
pub wait_for_supermajority: Option<Slot>,
pub new_hard_forks: Option<Vec<Slot>>,
pub known_validators: Option<HashSet<Pubkey>>,
pub repair_validators: Option<HashSet<Pubkey>>,
pub gossip_validators: Option<HashSet<Pubkey>>,
pub halt_on_known_validators_accounts_hash_mismatch: bool,
pub accounts_hash_fault_injection_slots: u64,
pub no_rocksdb_compaction: bool,
pub rocksdb_compaction_interval: Option<u64>,
pub rocksdb_max_compaction_jitter: Option<u64>,
pub accounts_hash_interval_slots: u64,
pub max_genesis_archive_unpacked_size: u64,
pub wal_recovery_mode: Option<BlockstoreRecoveryMode>,
pub poh_verify: bool,
pub require_tower: bool,
pub tower_storage: Arc<dyn TowerStorage>,
pub debug_keys: Option<Arc<HashSet<Pubkey>>>,
pub contact_debug_interval: u64,
pub contact_save_interval: u64,
pub bpf_jit: bool,
pub send_transaction_service_config: Config,
pub no_poh_speed_test: bool,
pub no_os_network_stats_reporting: bool,
pub poh_pinned_cpu_core: usize,
pub poh_hashes_per_batch: u64,
pub account_indexes: AccountSecondaryIndexes,
pub accounts_db_caching_enabled: bool,
pub accounts_db_config: Option<AccountsDbConfig>,
pub warp_slot: Option<Slot>,
pub accounts_db_test_hash_calculation: bool,
pub accounts_db_skip_shrink: bool,
pub accounts_db_use_index_hash_calculation: bool,
pub tpu_coalesce_ms: u64,
pub validator_exit: Arc<RwLock<Exit>>,
pub no_wait_for_vote_to_start_leader: bool,
pub accounts_shrink_ratio: AccountShrinkThreshold,
pub wait_to_vote_slot: Option<Slot>,
}Fields
dev_halt_at_slot: Option<Slot>expected_genesis_hash: Option<Hash>expected_bank_hash: Option<Hash>expected_shred_version: Option<u16>voting_disabled: boolaccount_paths: Vec<PathBuf>account_shrink_paths: Option<Vec<PathBuf>>rpc_config: JsonRpcConfigaccountsdb_repl_service_config: Option<AccountsDbReplServiceConfig>geyser_plugin_config_files: Option<Vec<PathBuf>>rpc_addrs: Option<(SocketAddr, SocketAddr)>pubsub_config: PubSubConfigsnapshot_config: Option<SnapshotConfig>max_ledger_shreds: Option<u64>broadcast_stage_type: BroadcastStageTypeenable_partition: Option<Arc<AtomicBool>>enforce_ulimit_nofile: boolfixed_leader_schedule: Option<FixedSchedule>wait_for_supermajority: Option<Slot>new_hard_forks: Option<Vec<Slot>>known_validators: Option<HashSet<Pubkey>>repair_validators: Option<HashSet<Pubkey>>gossip_validators: Option<HashSet<Pubkey>>halt_on_known_validators_accounts_hash_mismatch: boolaccounts_hash_fault_injection_slots: u64no_rocksdb_compaction: boolrocksdb_compaction_interval: Option<u64>rocksdb_max_compaction_jitter: Option<u64>accounts_hash_interval_slots: u64max_genesis_archive_unpacked_size: u64wal_recovery_mode: Option<BlockstoreRecoveryMode>poh_verify: boolrequire_tower: booltower_storage: Arc<dyn TowerStorage>debug_keys: Option<Arc<HashSet<Pubkey>>>contact_debug_interval: u64contact_save_interval: u64bpf_jit: boolsend_transaction_service_config: Configno_poh_speed_test: boolno_os_network_stats_reporting: boolpoh_pinned_cpu_core: usizepoh_hashes_per_batch: u64account_indexes: AccountSecondaryIndexesaccounts_db_caching_enabled: boolaccounts_db_config: Option<AccountsDbConfig>warp_slot: Option<Slot>accounts_db_test_hash_calculation: boolaccounts_db_skip_shrink: boolaccounts_db_use_index_hash_calculation: booltpu_coalesce_ms: u64validator_exit: Arc<RwLock<Exit>>no_wait_for_vote_to_start_leader: boolaccounts_shrink_ratio: AccountShrinkThresholdwait_to_vote_slot: Option<Slot>Implementations
sourceimpl ValidatorConfig
impl ValidatorConfig
pub fn default_for_test() -> Self
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ValidatorConfig
impl Send for ValidatorConfig
impl Sync for ValidatorConfig
impl Unpin for ValidatorConfig
impl !UnwindSafe for ValidatorConfig
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> TupleTree<T, ()> for T
impl<T> TupleTree<T, ()> for T
const SIZE: Size
fn descendants(_indirect_level: usize) -> usize
fn height() -> usize
fn preorder(self, f: &mut impl FnMut(Visit<T>))
fn preorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
fn postorder(self, f: &mut impl FnMut(Visit<T>))
fn postorder_with_size_hint(self, f: &mut impl FnMut(Visit<T>, Size))
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more