From 3649c63de55dd6594a8f65835b5271e3024f8f90 Mon Sep 17 00:00:00 2001 From: borispovod Date: Fri, 28 Jan 2022 18:52:12 +0300 Subject: [PATCH] parachain id only from specs --- node/src/cli.rs | 4 ---- node/src/command.rs | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/node/src/cli.rs b/node/src/cli.rs index b4d567b7..d712e067 100644 --- a/node/src/cli.rs +++ b/node/src/cli.rs @@ -38,10 +38,6 @@ pub struct Cli { #[structopt(long, default_value = "instant")] pub sealing: Sealing, - /// Id of the parachain this collator collates for. - #[structopt(long)] - pub parachain_id: Option, - /// Whether to run node in development node (single node, no consensus) #[structopt(long)] pub dev_service: bool, diff --git a/node/src/command.rs b/node/src/command.rs index 97cabb0f..64d74249 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -259,11 +259,7 @@ pub fn run() -> sc_cli::Result<()> { let polkadot_cli = RelayChainCli::new(&config, cli.relaychain_args.into_iter()); - let id = ParaId::from( - cli.parachain_id - .or(para_id) - .unwrap_or(constants::PARACHAIN_ID), - ); + let id = ParaId::from(para_id.unwrap()); let parachain_account = AccountIdConversion::::into_account(&id);