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

Commit

Permalink
parachain id only from specs
Browse files Browse the repository at this point in the history
  • Loading branch information
borispovod committed Jan 28, 2022
1 parent 92b1891 commit 3649c63
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<u32>,

/// Whether to run node in development node (single node, no consensus)
#[structopt(long)]
pub dev_service: bool,
Expand Down
6 changes: 1 addition & 5 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<polkadot_primitives::v0::AccountId>::into_account(&id);
Expand Down

0 comments on commit 3649c63

Please sign in to comment.