mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 16:57:58 +00:00
Inspection extension to node CLI (#4697)
* Initial inspect. * WiP * Add parsing tests. * Finalize CLI. * Update to latest substrate. * Remove unused imports. * Support ImportParams as well, to get the right pruning setting. * Mention in docs that hash is no 0x. * Move bytes above extrinsics. * Switch to fill helper from sc_cli. * Remove overwrite. * Fix error. * Fix error message. * Remove extra allow. * init_config
This commit is contained in:
@@ -39,6 +39,16 @@ where
|
||||
load_spec,
|
||||
&version,
|
||||
),
|
||||
Some(Subcommand::Inspect(cmd)) => {
|
||||
cmd.init(&mut config, load_spec, &version)?;
|
||||
|
||||
let client = sc_service::new_full_client::<
|
||||
node_runtime::Block,node_runtime::RuntimeApi, node_executor::Executor, _, _,
|
||||
>(&config)?;
|
||||
let inspect = node_inspect::Inspector::<node_runtime::Block>::new(client);
|
||||
|
||||
cmd.run(inspect)
|
||||
},
|
||||
Some(Subcommand::Factory(cli_args)) => {
|
||||
sc_cli::init(&cli_args.shared_params, &version)?;
|
||||
sc_cli::init_config(&mut config, &cli_args.shared_params, &version, load_spec)?;
|
||||
|
||||
Reference in New Issue
Block a user