pub struct RevertCmd {
    pub num: GenericNumber,
    pub shared_params: SharedParams,
    pub pruning_params: PruningParams,
    pub database_params: DatabaseParams,
}Expand description
The revert command used revert the chain to a previous state.
Fields§
§num: GenericNumberNumber of blocks to revert.
pruning_params: PruningParams§database_params: DatabaseParamsImplementations§
Trait Implementations§
Source§impl Args for RevertCmd
 
impl Args for RevertCmd
Source§fn group_id() -> Option<Id>
 
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
 
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
 
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Source§impl CliConfiguration for RevertCmd
 
impl CliConfiguration for RevertCmd
Get the SharedParams for this object
Source§fn pruning_params(&self) -> Option<&PruningParams>
 
fn pruning_params(&self) -> Option<&PruningParams>
Get the PruningParams for this object
Source§fn database_params(&self) -> Option<&DatabaseParams>
 
fn database_params(&self) -> Option<&DatabaseParams>
Get the DatabaseParams for this object
Source§fn import_params(&self) -> Option<&ImportParams>
 
fn import_params(&self) -> Option<&ImportParams>
Get the ImportParams for this object
Source§fn keystore_params(&self) -> Option<&KeystoreParams>
 
fn keystore_params(&self) -> Option<&KeystoreParams>
Get the KeystoreParams for this object
Source§fn network_params(&self) -> Option<&NetworkParams>
 
fn network_params(&self) -> Option<&NetworkParams>
Get the NetworkParams for this object
Source§fn offchain_worker_params(&self) -> Option<&OffchainWorkerParams>
 
fn offchain_worker_params(&self) -> Option<&OffchainWorkerParams>
Get a reference to 
OffchainWorkerParams for this object.Source§fn node_key_params(&self) -> Option<&NodeKeyParams>
 
fn node_key_params(&self) -> Option<&NodeKeyParams>
Get the NodeKeyParams for this object
Source§fn base_path(&self) -> Result<Option<BasePath>>
 
fn base_path(&self) -> Result<Option<BasePath>>
Get the base path of the configuration (if any) Read more
Source§fn transaction_pool(&self, _is_dev: bool) -> Result<TransactionPoolOptions>
 
fn transaction_pool(&self, _is_dev: bool) -> Result<TransactionPoolOptions>
Get the transaction pool options Read more
Source§fn network_config(
    &self,
    chain_spec: &Box<dyn ChainSpec>,
    is_dev: bool,
    is_validator: bool,
    net_config_dir: PathBuf,
    client_id: &str,
    node_name: &str,
    node_key: NodeKeyConfig,
    default_listen_port: u16,
) -> Result<NetworkConfiguration>
 
fn network_config( &self, chain_spec: &Box<dyn ChainSpec>, is_dev: bool, is_validator: bool, net_config_dir: PathBuf, client_id: &str, node_name: &str, node_key: NodeKeyConfig, default_listen_port: u16, ) -> Result<NetworkConfiguration>
Get the network configuration Read more
Source§fn keystore_config(&self, config_dir: &PathBuf) -> Result<KeystoreConfig>
 
fn keystore_config(&self, config_dir: &PathBuf) -> Result<KeystoreConfig>
Get the keystore configuration. Read more
Source§fn database_config(
    &self,
    base_path: &PathBuf,
    cache_size: usize,
    database: Database,
) -> Result<DatabaseSource>
 
fn database_config( &self, base_path: &PathBuf, cache_size: usize, database: Database, ) -> Result<DatabaseSource>
Get the database configuration object for the parameters provided
Source§fn trie_cache_maximum_size(&self) -> Result<Option<usize>>
 
fn trie_cache_maximum_size(&self) -> Result<Option<usize>>
Get the trie cache maximum size. Read more
Source§fn warm_up_trie_cache(&self) -> Result<Option<TrieCacheWarmUpStrategy>>
 
fn warm_up_trie_cache(&self) -> Result<Option<TrieCacheWarmUpStrategy>>
Get if we should warm up the trie cache. Read more
Source§fn state_pruning(&self) -> Result<Option<PruningMode>>
 
fn state_pruning(&self) -> Result<Option<PruningMode>>
Get the state pruning mode. Read more
Source§fn blocks_pruning(&self) -> Result<BlocksPruning>
 
fn blocks_pruning(&self) -> Result<BlocksPruning>
Get the block pruning mode. Read more
Source§fn wasm_method(&self) -> Result<WasmExecutionMethod>
 
fn wasm_method(&self) -> Result<WasmExecutionMethod>
Get the WASM execution method. Read more
Source§fn wasm_runtime_overrides(&self) -> Option<PathBuf>
 
fn wasm_runtime_overrides(&self) -> Option<PathBuf>
Get the path where WASM overrides live. Read more
Source§fn rpc_addr(
    &self,
    _default_listen_port: u16,
) -> Result<Option<Vec<RpcEndpoint>>>
 
fn rpc_addr( &self, _default_listen_port: u16, ) -> Result<Option<Vec<RpcEndpoint>>>
Get the RPC address.
Source§fn rpc_methods(&self) -> Result<RpcMethods>
 
fn rpc_methods(&self) -> Result<RpcMethods>
Returns the RPC method set to expose. Read more
Source§fn rpc_max_connections(&self) -> Result<u32>
 
fn rpc_max_connections(&self) -> Result<u32>
Get the maximum number of RPC server connections.
Source§fn rpc_cors(&self, _is_dev: bool) -> Result<Option<Vec<String>>>
 
fn rpc_cors(&self, _is_dev: bool) -> Result<Option<Vec<String>>>
Get the RPC cors (
None if disabled) Read moreSource§fn rpc_max_request_size(&self) -> Result<u32>
 
fn rpc_max_request_size(&self) -> Result<u32>
Get maximum RPC request payload size.
Source§fn rpc_max_response_size(&self) -> Result<u32>
 
fn rpc_max_response_size(&self) -> Result<u32>
Get maximum RPC response payload size.
Source§fn rpc_max_subscriptions_per_connection(&self) -> Result<u32>
 
fn rpc_max_subscriptions_per_connection(&self) -> Result<u32>
Get maximum number of subscriptions per connection.
Source§fn rpc_buffer_capacity_per_connection(&self) -> Result<u32>
 
fn rpc_buffer_capacity_per_connection(&self) -> Result<u32>
The number of messages the RPC server is allowed to keep in memory per connection.
Source§fn rpc_batch_config(&self) -> Result<RpcBatchRequestConfig>
 
fn rpc_batch_config(&self) -> Result<RpcBatchRequestConfig>
RPC server batch request configuration.
Source§fn rpc_rate_limit(&self) -> Result<Option<NonZeroU32>>
 
fn rpc_rate_limit(&self) -> Result<Option<NonZeroU32>>
RPC rate limit configuration.
Source§fn rpc_rate_limit_whitelisted_ips(&self) -> Result<Vec<IpNetwork>>
 
fn rpc_rate_limit_whitelisted_ips(&self) -> Result<Vec<IpNetwork>>
RPC rate limit whitelisted ip addresses.
Source§fn rpc_rate_limit_trust_proxy_headers(&self) -> Result<bool>
 
fn rpc_rate_limit_trust_proxy_headers(&self) -> Result<bool>
RPC rate limit trust proxy headers.
Source§fn prometheus_config(
    &self,
    _default_listen_port: u16,
    _chain_spec: &Box<dyn ChainSpec>,
) -> Result<Option<PrometheusConfig>>
 
fn prometheus_config( &self, _default_listen_port: u16, _chain_spec: &Box<dyn ChainSpec>, ) -> Result<Option<PrometheusConfig>>
Get the prometheus configuration (
None if disabled) Read moreSource§fn telemetry_endpoints(
    &self,
    chain_spec: &Box<dyn ChainSpec>,
) -> Result<Option<TelemetryEndpoints>>
 
fn telemetry_endpoints( &self, chain_spec: &Box<dyn ChainSpec>, ) -> Result<Option<TelemetryEndpoints>>
Get the telemetry endpoints (if any) Read more
Source§fn default_heap_pages(&self) -> Result<Option<u64>>
 
fn default_heap_pages(&self) -> Result<Option<u64>>
Get the default value for heap pages Read more
Source§fn offchain_worker(&self, role: &Role) -> Result<OffchainWorkerConfig>
 
fn offchain_worker(&self, role: &Role) -> Result<OffchainWorkerConfig>
Returns an offchain worker config wrapped in 
Ok(_) Read moreReturns 
Ok(true) if authoring should be forced Read moreSource§fn disable_grandpa(&self) -> Result<bool>
 
fn disable_grandpa(&self) -> Result<bool>
Returns 
Ok(true) if grandpa should be disabled Read moreSource§fn dev_key_seed(&self, _is_dev: bool) -> Result<Option<String>>
 
fn dev_key_seed(&self, _is_dev: bool) -> Result<Option<String>>
Get the development key seed from the current object Read more
Source§fn tracing_targets(&self) -> Result<Option<String>>
 
fn tracing_targets(&self) -> Result<Option<String>>
Get the tracing targets from the current object (if any) Read more
Source§fn tracing_receiver(&self) -> Result<TracingReceiver>
 
fn tracing_receiver(&self) -> Result<TracingReceiver>
Get the TracingReceiver value from the current object Read more
Source§fn node_key(&self, net_config_dir: &PathBuf) -> Result<NodeKeyConfig>
 
fn node_key(&self, net_config_dir: &PathBuf) -> Result<NodeKeyConfig>
Get the node key from the current object Read more
Source§fn max_runtime_instances(&self) -> Result<Option<usize>>
 
fn max_runtime_instances(&self) -> Result<Option<usize>>
Get maximum runtime instances Read more
Source§fn announce_block(&self) -> Result<bool>
 
fn announce_block(&self) -> Result<bool>
Activate or not the automatic announcing of blocks after import Read more
Source§fn create_configuration<C: SubstrateCli>(
    &self,
    cli: &C,
    tokio_handle: Handle,
) -> Result<Configuration>
 
fn create_configuration<C: SubstrateCli>( &self, cli: &C, tokio_handle: Handle, ) -> Result<Configuration>
Create a Configuration object from the current object
Source§fn detailed_log_output(&self) -> Result<bool>
 
fn detailed_log_output(&self) -> Result<bool>
Should the detailed log output be enabled.
Source§fn enable_log_reloading(&self) -> Result<bool>
 
fn enable_log_reloading(&self) -> Result<bool>
Is log reloading enabled?
Source§fn disable_log_color(&self) -> Result<bool>
 
fn disable_log_color(&self) -> Result<bool>
Should the log color output be disabled?
Source§impl FromArgMatches for RevertCmd
 
impl FromArgMatches for RevertCmd
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
 
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
    __clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
 
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
    &mut self,
    __clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
 
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from 
ArgMatches to self.Source§fn update_from_arg_matches_mut(
    &mut self,
    __clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
 
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from 
ArgMatches to self.Source§impl Parser for RevertCmd
 
impl Parser for RevertCmd
§fn parse_from<I, T>(itr: I) -> Self
 
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
 
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
 
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error.
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
 
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for RevertCmd
impl RefUnwindSafe for RevertCmd
impl Send for RevertCmd
impl Sync for RevertCmd
impl Unpin for RevertCmd
impl UnwindSafe for RevertCmd
Blanket Implementations§
§impl<T> AnySync for T
 
impl<T> AnySync for T
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
Source§impl<T> CheckedConversion for T
 
impl<T> CheckedConversion for T
§impl<T> Conv for T
 
impl<T> Conv for T
§impl<T> FmtForward for T
 
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
 
fn fmt_binary(self) -> FmtBinary<Self>where
    Self: Binary,
Causes 
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
 
fn fmt_display(self) -> FmtDisplay<Self>where
    Self: Display,
Causes 
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
 
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
    Self: LowerExp,
Causes 
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
 
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
    Self: LowerHex,
Causes 
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
 
fn fmt_octal(self) -> FmtOctal<Self>where
    Self: Octal,
Causes 
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
 
fn fmt_pointer(self) -> FmtPointer<Self>where
    Self: Pointer,
Causes 
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
 
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
    Self: UpperExp,
Causes 
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
 
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
    Self: UpperHex,
Causes 
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
 
fn fmt_list(self) -> FmtList<Self>where
    &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<Src, Dest> IntoTuple<Dest> for Srcwhere
    Dest: FromTuple<Src>,
 
impl<Src, Dest> IntoTuple<Dest> for Srcwhere
    Dest: FromTuple<Src>,
fn into_tuple(self) -> Dest
Source§impl<T, Outer> IsWrappedBy<Outer> for T
 
impl<T, Outer> IsWrappedBy<Outer> for T
§impl<T> Pipe for Twhere
    T: ?Sized,
 
impl<T> Pipe for Twhere
    T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
 
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
    Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
    R: 'a,
Borrows 
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
 
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
    R: 'a,
Mutably borrows 
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
 
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
    &'a mut self,
    func: impl FnOnce(&'a mut B) -> R,
) -> R
 
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
 
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows 
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
 
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows 
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
 
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows 
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
 
impl<T> Pointable for T
Source§impl<T> SaturatedConversion for T
 
impl<T> SaturatedConversion for T
Source§fn saturated_from<T>(t: T) -> Selfwhere
    Self: UniqueSaturatedFrom<T>,
 
fn saturated_from<T>(t: T) -> Selfwhere
    Self: UniqueSaturatedFrom<T>,
Source§fn saturated_into<T>(self) -> Twhere
    Self: UniqueSaturatedInto<T>,
 
fn saturated_into<T>(self) -> Twhere
    Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of 
T. Read more§impl<T> Tap for T
 
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the 
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the 
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the 
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the 
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the 
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
 
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the 
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
 
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls 
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
 
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls 
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
 
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls 
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
 
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls 
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
 
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls 
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
 
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls 
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
 
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls 
.tap_deref() only in debug builds, and is erased in release
builds.§impl<T> TryConv for T
 
impl<T> TryConv for T
Source§impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,
 
impl<S, T> UncheckedInto<T> for Swhere
    T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
 
fn unchecked_into(self) -> T
The counterpart to 
unchecked_from.Source§impl<T, S> UniqueSaturatedInto<T> for S
 
impl<T, S> UniqueSaturatedInto<T> for S
Source§fn unique_saturated_into(self) -> T
 
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of 
T.