mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 15:51:12 +00:00
merge from cumulus release branch inc extra commit (#940)
* Revert "Companion for substrate#10632 (#895)" This reverts commitfd145766d4. * Revert "Companion for paritytech/polkadot#4712 (#901)" This reverts commit9c977d66a3. * Prepare branch * Make sure to use `state_version = 0` for now * Fix lock file * Minimising changes to cargo lock * updating to include weights update. Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
#![warn(missing_docs)]
|
||||
|
||||
use clap::Parser;
|
||||
use sc_cli;
|
||||
use sc_service::{
|
||||
config::{PrometheusConfig, TelemetryEndpoints},
|
||||
@@ -29,20 +28,21 @@ use std::{
|
||||
io::{self, Write},
|
||||
net::SocketAddr,
|
||||
};
|
||||
use structopt::StructOpt;
|
||||
|
||||
/// The `purge-chain` command used to remove the whole chain: the parachain and the relay chain.
|
||||
#[derive(Debug, Parser)]
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub struct PurgeChainCmd {
|
||||
/// The base struct of the purge-chain command.
|
||||
#[clap(flatten)]
|
||||
#[structopt(flatten)]
|
||||
pub base: sc_cli::PurgeChainCmd,
|
||||
|
||||
/// Only delete the para chain database
|
||||
#[clap(long, aliases = &["para"])]
|
||||
#[structopt(long, aliases = &["para"])]
|
||||
pub parachain: bool,
|
||||
|
||||
/// Only delete the relay chain database
|
||||
#[clap(long, aliases = &["relay"])]
|
||||
#[structopt(long, aliases = &["relay"])]
|
||||
pub relaychain: bool,
|
||||
}
|
||||
|
||||
@@ -120,16 +120,16 @@ impl sc_cli::CliConfiguration for PurgeChainCmd {
|
||||
}
|
||||
|
||||
/// The `run` command used to run a node.
|
||||
#[derive(Debug, Parser)]
|
||||
#[derive(Debug, StructOpt)]
|
||||
pub struct RunCmd {
|
||||
/// The cumulus RunCmd inherents from sc_cli's
|
||||
#[clap(flatten)]
|
||||
#[structopt(flatten)]
|
||||
pub base: sc_cli::RunCmd,
|
||||
|
||||
/// Run node as collator.
|
||||
///
|
||||
/// Note that this is the same as running with `--validator`.
|
||||
#[clap(long, conflicts_with = "validator")]
|
||||
#[structopt(long, conflicts_with = "validator")]
|
||||
pub collator: bool,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user