mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-02 17:01:07 +00:00
Remove parachain-id cli command (#739)
This was never planned to be a permanent feature. This was mainly added for testing purposes, but now was copied by everybody. The users should be more specific about the para id and set this properly in the chain spec.
This commit is contained in:
1 parent
e65ee55d80
commit
520012619e
6 files changed
+70
-93
No files matched your search
@@ -125,10 +125,6 @@ pub struct RunCmd {
|
||||
#[structopt(flatten)]
|
||||
pub base: sc_cli::RunCmd,
|
||||
|
||||
/// Id of the parachain this collator collates for.
|
||||
#[structopt(long)]
|
||||
pub parachain_id: Option<u32>,
|
||||
|
||||
/// Run node as collator.
|
||||
///
|
||||
/// Note that this is the same as running with `--validator`.
|
||||
@@ -142,8 +138,6 @@ pub struct RunCmd {
|
||||
pub struct NormalizedRunCmd {
|
||||
/// The cumulus RunCmd inherents from sc_cli's
|
||||
pub base: sc_cli::RunCmd,
|
||||
/// Id of the parachain this collator collates for.
|
||||
pub parachain_id: Option<u32>,
|
||||
}
|
||||
|
||||
impl RunCmd {
|
||||
@@ -153,7 +147,7 @@ impl RunCmd {
|
||||
|
||||
new_base.validator = self.base.validator || self.collator;
|
||||
|
||||
NormalizedRunCmd { base: new_base, parachain_id: self.parachain_id }
|
||||
NormalizedRunCmd { base: new_base }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user