Struct cfx_storage::StorageConfiguration
source · pub struct StorageConfiguration {Show 25 fields
pub additional_maintained_snapshot_count: u32,
pub consensus_param: ConsensusParam,
pub debug_snapshot_checker_threads: u16,
pub delta_mpts_cache_recent_lfu_factor: f64,
pub delta_mpts_cache_start_size: u32,
pub delta_mpts_cache_size: u32,
pub delta_mpts_node_map_vec_size: u32,
pub delta_mpts_slab_idle_size: u32,
pub single_mpt_cache_start_size: u32,
pub single_mpt_cache_size: u32,
pub single_mpt_slab_idle_size: u32,
pub max_open_snapshots: u16,
pub path_delta_mpts_dir: PathBuf,
pub path_storage_dir: PathBuf,
pub path_snapshot_dir: PathBuf,
pub path_snapshot_info_db: PathBuf,
pub provide_more_snapshot_for_sync: Vec<ProvideExtraSnapshotSyncConfig>,
pub max_open_mpt_count: u32,
pub enable_single_mpt_storage: bool,
pub single_mpt_space: Option<Space>,
pub cip90a: u64,
pub keep_snapshot_before_stable_checkpoint: bool,
pub use_isolated_db_for_mpt_table: bool,
pub use_isolated_db_for_mpt_table_height: Option<u64>,
pub keep_era_genesis_snapshot: bool,
}
Fields§
§additional_maintained_snapshot_count: u32
§consensus_param: ConsensusParam
§debug_snapshot_checker_threads: u16
§delta_mpts_cache_recent_lfu_factor: f64
§delta_mpts_cache_start_size: u32
§delta_mpts_cache_size: u32
§delta_mpts_node_map_vec_size: u32
§delta_mpts_slab_idle_size: u32
§single_mpt_cache_start_size: u32
§single_mpt_cache_size: u32
§single_mpt_slab_idle_size: u32
§max_open_snapshots: u16
§path_delta_mpts_dir: PathBuf
§path_storage_dir: PathBuf
§path_snapshot_dir: PathBuf
§path_snapshot_info_db: PathBuf
§provide_more_snapshot_for_sync: Vec<ProvideExtraSnapshotSyncConfig>
§max_open_mpt_count: u32
§enable_single_mpt_storage: bool
§single_mpt_space: Option<Space>
§cip90a: u64
§keep_snapshot_before_stable_checkpoint: bool
§use_isolated_db_for_mpt_table: bool
§use_isolated_db_for_mpt_table_height: Option<u64>
§keep_era_genesis_snapshot: bool
Implementations§
source§impl StorageConfiguration
impl StorageConfiguration
pub fn new_default( conflux_data_dir: &str, snapshot_epoch_count: u32, era_epoch_count: u64 ) -> Self
pub fn full_state_start_height(&self) -> Option<u64>
Trait Implementations§
source§impl Clone for StorageConfiguration
impl Clone for StorageConfiguration
source§fn clone(&self) -> StorageConfiguration
fn clone(&self) -> StorageConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for StorageConfiguration
impl Send for StorageConfiguration
impl Sync for StorageConfiguration
impl Unpin for StorageConfiguration
impl UnwindSafe for StorageConfiguration
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more