mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
Update Substrate
This commit is contained in:
@@ -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),
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user