Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 3649c63

Browse files
author
borispovod
committed
parachain id only from specs
1 parent 92b1891 commit 3649c63

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

node/src/cli.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ pub struct Cli {
3838
#[structopt(long, default_value = "instant")]
3939
pub sealing: Sealing,
4040

41-
/// Id of the parachain this collator collates for.
42-
#[structopt(long)]
43-
pub parachain_id: Option<u32>,
44-
4541
/// Whether to run node in development node (single node, no consensus)
4642
#[structopt(long)]
4743
pub dev_service: bool,

node/src/command.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,7 @@ pub fn run() -> sc_cli::Result<()> {
259259

260260
let polkadot_cli = RelayChainCli::new(&config, cli.relaychain_args.into_iter());
261261

262-
let id = ParaId::from(
263-
cli.parachain_id
264-
.or(para_id)
265-
.unwrap_or(constants::PARACHAIN_ID),
266-
);
262+
let id = ParaId::from(para_id.unwrap());
267263

268264
let parachain_account =
269265
AccountIdConversion::<polkadot_primitives::v0::AccountId>::into_account(&id);

0 commit comments

Comments
 (0)