Update Substrate

This commit is contained in:
Luke Parker
2025-11-25 00:06:54 -05:00
parent 2ffdd2a01d
commit c49215805f
17 changed files with 344 additions and 475 deletions

View File

@@ -12,13 +12,6 @@ pub struct Cli {
#[allow(clippy::large_enum_variant)]
#[derive(Debug, clap::Subcommand)]
pub enum Subcommand {
// Key management CLI utilities
#[clap(subcommand)]
Key(sc_cli::KeySubcommand),
// Build a chain specification
BuildSpec(sc_cli::BuildSpecCmd),
// Validate blocks
CheckBlock(sc_cli::CheckBlockCmd),

View File

@@ -51,12 +51,6 @@ pub fn run() -> sc_cli::Result<()> {
let mut cli = Cli::from_args();
match &cli.subcommand {
Some(Subcommand::Key(cmd)) => cmd.run(&cli),
Some(Subcommand::BuildSpec(cmd)) => {
cli.create_runner(cmd)?.sync_run(|config| cmd.run(config.chain_spec, config.network))
}
Some(Subcommand::CheckBlock(cmd)) => cli.create_runner(cmd)?.async_run(|mut config| {
let PartialComponents { client, task_manager, import_queue, .. } =
service::new_partial(&mut config)?.0;