Struct sc_cli::CheckBlockCmd [−][src]
pub struct CheckBlockCmd { pub input: BlockNumberOrHash, pub default_heap_pages: Option<u32>, pub shared_params: SharedParams, pub import_params: ImportParams, }
Expand description
The check-block
command used to validate blocks.
Fields
input: BlockNumberOrHash
Block hash or number
default_heap_pages: Option<u32>
The default number of 64KB pages to ever allocate for Wasm execution.
Don’t alter this unless you know what you’re doing.
import_params: ImportParams
Implementations
pub async fn run<B, C, IQ>(
&self,
client: Arc<C>,
import_queue: IQ
) -> Result<()> where
B: BlockT + for<'de> Deserialize<'de>,
C: BlockBackend<B> + UsageProvider<B> + Send + Sync + 'static,
IQ: ImportQueue<B> + 'static,
B::Hash: FromStr,
<B::Hash as FromStr>::Err: Debug,
<<B::Header as HeaderT>::Number as FromStr>::Err: Debug,
pub async fn run<B, C, IQ>(
&self,
client: Arc<C>,
import_queue: IQ
) -> Result<()> where
B: BlockT + for<'de> Deserialize<'de>,
C: BlockBackend<B> + UsageProvider<B> + Send + Sync + 'static,
IQ: ImportQueue<B> + 'static,
B::Hash: FromStr,
<B::Hash as FromStr>::Err: Debug,
<<B::Header as HeaderT>::Number as FromStr>::Err: Debug,
Run the check-block command
Trait Implementations
Get the SharedParams for this object
Get the ImportParams for this object
Get the PruningParams for this object
Get the KeystoreParams for this object
Get the NetworkParams for this object
Get a reference to OffchainWorkerParams
for this object.
Get the NodeKeyParams for this object
Get the DatabaseParams for this object
Get the base path of the configuration (if any) Read more
Get the transaction pool options Read more
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
Get the keystore configuration. Read more
Get the database transaction storage scheme.
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
Get the state cache size. Read more
Get the state cache child ratio (if any). Read more
Get the state pruning mode. Read more
Get the block pruning mode. Read more
Get the WASM execution method. Read more
Get the path where WASM overrides live. Read more
fn execution_strategies(
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies>
fn execution_strategies(
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies>
Get the execution strategies. Read more
Get the RPC HTTP address (None
if disabled). Read more
Get the RPC websocket address (None
if disabled). Read more
Returns the RPC method set to expose. Read more
Get the RPC websockets maximum connections (None
if unlimited). Read more
Get the RPC HTTP thread pool size (None
for a default 4-thread pool config). Read more
Get the RPC cors (None
if disabled) Read more
Get maximum RPC payload.
Get the prometheus configuration (None
if disabled) Read more
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
Get the telemetry external transport Read more
Get the default value for heap pages Read more
Returns an offchain worker config wrapped in Ok(_)
Read more
Returns Ok(true)
if authoring should be forced Read more
Returns Ok(true)
if grandpa should be disabled Read more
Get the development key seed from the current object Read more
Get the tracing targets from the current object (if any) Read more
Get the TracingReceiver value from the current object Read more
Get the node key from the current object Read more
Get maximum runtime instances Read more
Activate or not the automatic announcing of blocks after import Read more
fn create_configuration<C: SubstrateCli>(
&self,
cli: &C,
task_executor: TaskExecutor
) -> Result<Configuration>
fn create_configuration<C: SubstrateCli>(
&self,
cli: &C,
task_executor: TaskExecutor
) -> Result<Configuration>
Create a Configuration object from the current object
Get the filters for the logging. Read more
Is log reloading disabled (enabled by default)
Should the log color output be disabled?
Builds the struct from clap::ArgMatches
. It’s guaranteed to succeed
if matches
originates from an App
generated by [StructOpt::clap
] called on
the same type, otherwise it must panic. Read more
fn from_args() -> Self
fn from_args() -> Self
Builds the struct from the command line arguments (std::env::args_os
).
Calls clap::Error::exit
on failure, printing the error message and aborting the program. Read more
fn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
Builds the struct from the command line arguments (std::env::args_os
).
Unlike [StructOpt::from_args
], returns clap::Error
on failure instead of aborting the program,
so calling .exit
is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making.
Print the error message and quit the program in case of failure. Read more
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
Gets the struct from any iterator such as a Vec
of your making. Read more
Auto Trait Implementations
impl RefUnwindSafe for CheckBlockCmd
impl Send for CheckBlockCmd
impl Sync for CheckBlockCmd
impl Unpin for CheckBlockCmd
impl UnwindSafe for CheckBlockCmd
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,