Struct sc_cli::RevertCmd [−][src]
The revert
command used revert the chain to a previous state.
Fields
num: GenericNumber
Number of blocks to revert.
pruning_params: PruningParams
Implementations
impl RevertCmd
[src]
pub async fn run<B, BA, C>(
&self,
client: Arc<C>,
backend: Arc<BA>
) -> Result<()> where
B: BlockT,
BA: Backend<B>,
C: UsageProvider<B>,
<<<B as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
[src]
&self,
client: Arc<C>,
backend: Arc<BA>
) -> Result<()> where
B: BlockT,
BA: Backend<B>,
C: UsageProvider<B>,
<<<B as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
Run the revert command
Trait Implementations
impl CliConfiguration<()> for RevertCmd
[src]
fn shared_params(&self) -> &SharedParams
[src]
fn pruning_params(&self) -> Option<&PruningParams>
[src]
fn import_params(&self) -> Option<&ImportParams>
[src]
fn keystore_params(&self) -> Option<&KeystoreParams>
[src]
fn network_params(&self) -> Option<&NetworkParams>
[src]
fn offchain_worker_params(&self) -> Option<&OffchainWorkerParams>
[src]
fn node_key_params(&self) -> Option<&NodeKeyParams>
[src]
fn database_params(&self) -> Option<&DatabaseParams>
[src]
fn base_path(&self) -> Result<Option<BasePath>>
[src]
fn is_dev(&self) -> Result<bool>
[src]
fn role(&self, _is_dev: bool) -> Result<Role>
[src]
fn transaction_pool(&self) -> Result<TransactionPoolOptions>
[src]
fn network_config(
&self,
chain_spec: &Box<dyn ChainSpec>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig,
default_listen_port: u16
) -> Result<NetworkConfiguration>
[src]
&self,
chain_spec: &Box<dyn ChainSpec>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig,
default_listen_port: u16
) -> Result<NetworkConfiguration>
fn keystore_config(
&self,
config_dir: &PathBuf
) -> Result<(Option<String>, KeystoreConfig)>
[src]
&self,
config_dir: &PathBuf
) -> Result<(Option<String>, KeystoreConfig)>
fn database_cache_size(&self) -> Result<Option<usize>>
[src]
fn database_transaction_storage(&self) -> Result<TransactionStorageMode>
[src]
fn database(&self) -> Result<Option<Database>>
[src]
fn database_config(
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseConfig>
[src]
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseConfig>
fn state_cache_size(&self) -> Result<usize>
[src]
fn state_cache_child_ratio(&self) -> Result<Option<usize>>
[src]
fn state_pruning(
&self,
unsafe_pruning: bool,
role: &Role
) -> Result<PruningMode>
[src]
&self,
unsafe_pruning: bool,
role: &Role
) -> Result<PruningMode>
fn keep_blocks(&self) -> Result<KeepBlocks>
[src]
fn chain_id(&self, is_dev: bool) -> Result<String>
[src]
fn node_name(&self) -> Result<String>
[src]
fn wasm_method(&self) -> Result<WasmExecutionMethod>
[src]
fn wasm_runtime_overrides(&self) -> Option<PathBuf>
[src]
fn execution_strategies(
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies>
[src]
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies>
fn rpc_http(&self, _default_listen_port: u16) -> Result<Option<SocketAddr>>
[src]
fn rpc_ipc(&self) -> Result<Option<String>>
[src]
fn rpc_ws(&self, _default_listen_port: u16) -> Result<Option<SocketAddr>>
[src]
fn rpc_methods(&self) -> Result<RpcMethods>
[src]
fn rpc_ws_max_connections(&self) -> Result<Option<usize>>
[src]
fn rpc_cors(&self, _is_dev: bool) -> Result<Option<Vec<String>>>
[src]
fn prometheus_config(
&self,
_default_listen_port: u16
) -> Result<Option<PrometheusConfig>>
[src]
&self,
_default_listen_port: u16
) -> Result<Option<PrometheusConfig>>
fn telemetry_endpoints(
&self,
chain_spec: &Box<dyn ChainSpec>
) -> Result<Option<TelemetryEndpoints>>
[src]
&self,
chain_spec: &Box<dyn ChainSpec>
) -> Result<Option<TelemetryEndpoints>>
fn telemetry_external_transport(&self) -> Result<Option<ExtTransport>>
[src]
fn default_heap_pages(&self) -> Result<Option<u64>>
[src]
fn offchain_worker(&self, role: &Role) -> Result<OffchainWorkerConfig>
[src]
fn force_authoring(&self) -> Result<bool>
[src]
fn disable_grandpa(&self) -> Result<bool>
[src]
fn dev_key_seed(&self, _is_dev: bool) -> Result<Option<String>>
[src]
fn tracing_targets(&self) -> Result<Option<String>>
[src]
fn tracing_receiver(&self) -> Result<TracingReceiver>
[src]
fn node_key(&self, net_config_dir: &PathBuf) -> Result<NodeKeyConfig>
[src]
fn max_runtime_instances(&self) -> Result<Option<usize>>
[src]
fn announce_block(&self) -> Result<bool>
[src]
fn create_configuration<C: SubstrateCli>(
&self,
cli: &C,
task_executor: TaskExecutor,
telemetry_handle: Option<TelemetryHandle>
) -> Result<Configuration>
[src]
&self,
cli: &C,
task_executor: TaskExecutor,
telemetry_handle: Option<TelemetryHandle>
) -> Result<Configuration>
fn log_filters(&self) -> Result<String>
[src]
fn is_log_filter_reloading_disabled(&self) -> Result<bool>
[src]
fn disable_log_color(&self) -> Result<bool>
[src]
fn init<C: SubstrateCli>(&self) -> Result<TelemetryWorker>
[src]
impl Debug for RevertCmd
[src]
impl StructOpt for RevertCmd
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
pub fn from_args() -> Self
[src]
pub fn from_args_safe() -> Result<Self, Error>
[src]
pub fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
pub fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for RevertCmd
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
Auto Trait Implementations
impl RefUnwindSafe for RevertCmd
impl Send for RevertCmd
impl Sync for RevertCmd
impl Unpin for RevertCmd
impl UnwindSafe for RevertCmd
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
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]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src]
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
[src]
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,