mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
ChainSpec trait (#5185)
* ChainSpec trait * Apply suggestions from code review Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Added docs * Fixed build * Fixed build Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -31,15 +31,12 @@ impl InspectCmd {
|
||||
}
|
||||
|
||||
/// Parse CLI arguments and initialize given config.
|
||||
pub fn update_config<G, E>(
|
||||
pub fn update_config(
|
||||
&self,
|
||||
mut config: &mut sc_service::config::Configuration<G, E>,
|
||||
spec_factory: impl FnOnce(&str) -> Result<Option<sc_service::ChainSpec<G, E>>, String>,
|
||||
mut config: &mut sc_service::config::Configuration,
|
||||
spec_factory: impl FnOnce(&str) -> Result<Box<dyn sc_service::ChainSpec>, String>,
|
||||
version: &sc_cli::VersionInfo,
|
||||
) -> sc_cli::Result<()> where
|
||||
G: sc_service::RuntimeGenesis,
|
||||
E: sc_service::ChainSpecExtension,
|
||||
{
|
||||
) -> sc_cli::Result<()> {
|
||||
self.shared_params.update_config(config, spec_factory, version)?;
|
||||
|
||||
// make sure to configure keystore
|
||||
|
||||
Reference in New Issue
Block a user