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

source

pub fn new_default( conflux_data_dir: &str, snapshot_epoch_count: u32, era_epoch_count: u64 ) -> Self

source

pub fn full_state_start_height(&self) -> Option<u64>

Trait Implementations§

source§

impl Clone for StorageConfiguration

source§

fn clone(&self) -> StorageConfiguration

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StorageConfiguration

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ElementSatisfy<ElementNoConstrain> for T

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V