Struct sc_cli::ImportParams[][src]

pub struct ImportParams {
    pub pruning_params: PruningParams,
    pub database_params: DatabaseParams,
    pub unsafe_pruning: bool,
    pub wasm_method: WasmExecutionMethod,
    pub wasm_runtime_overrides: Option<PathBuf>,
    pub execution_strategies: ExecutionStrategiesParams,
    pub state_cache_size: usize,
}

Parameters for block import.

Fields

pruning_params: PruningParamsdatabase_params: DatabaseParamsunsafe_pruning: bool

Force start with unsafe pruning settings.

When running as a validator it is highly recommended to disable state pruning (i.e. ‘archive’) which is the default. The node will refuse to start as a validator if pruning is enabled unless this option is set.

wasm_method: WasmExecutionMethod

Method for executing Wasm runtime code.

wasm_runtime_overrides: Option<PathBuf>

Specify the path where local WASM runtimes are stored.

These runtimes will override on-chain runtimes when the version matches.

execution_strategies: ExecutionStrategiesParamsstate_cache_size: usize

Specify the state cache size.

Implementations

impl ImportParams[src]

pub fn state_cache_size(&self) -> usize[src]

Specify the state cache size.

pub fn wasm_method(&self) -> WasmExecutionMethod[src]

Get the WASM execution method from the parameters

pub fn wasm_runtime_overrides(&self) -> Option<PathBuf>[src]

Enable overriding on-chain WASM with locally-stored WASM by specifying the path where local WASM is stored.

pub fn execution_strategies(
    &self,
    is_dev: bool,
    is_validator: bool
) -> ExecutionStrategies
[src]

Get execution strategies for the parameters

Trait Implementations

impl Debug for ImportParams[src]

impl StructOpt for ImportParams[src]

impl StructOptInternal for ImportParams[src]

Auto Trait Implementations

impl RefUnwindSafe for ImportParams

impl Send for ImportParams

impl Sync for ImportParams

impl Unpin for ImportParams

impl UnwindSafe for ImportParams

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedConversion for T[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> SaturatedConversion for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]