Skip to content

Commit

Permalink
only one spot for paraid truth
Browse files Browse the repository at this point in the history
  • Loading branch information
shawntabrizi committed Dec 3, 2024
1 parent 41a5d8e commit f437375
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
12 changes: 2 additions & 10 deletions templates/parachain/node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ pub fn development_chain_spec() -> ChainSpec {

ChainSpec::builder(
runtime::WASM_BINARY.expect("WASM binary was not built, please build it!"),
Extensions {
relay_chain: "rococo-local".into(),
// You MUST set this to the correct network!
para_id: 1000,
},
Extensions { relay_chain: "rococo-local".into(), para_id: runtime::PARACHAIN_ID },
)
.with_name("Development")
.with_id("dev")
Expand All @@ -59,11 +55,7 @@ pub fn local_chain_spec() -> ChainSpec {
#[allow(deprecated)]
ChainSpec::builder(
runtime::WASM_BINARY.expect("WASM binary was not built, please build it!"),
Extensions {
relay_chain: "rococo-local".into(),
// You MUST set this to the correct network!
para_id: 1000,
},
Extensions { relay_chain: "rococo-local".into(), para_id: runtime::PARACHAIN_ID },
)
.with_name("Local Testnet")
.with_id("local_testnet")
Expand Down
2 changes: 1 addition & 1 deletion templates/parachain/runtime/src/genesis_config_presets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use sp_keyring::Sr25519Keyring;
/// The default XCM version to set in genesis config.
const SAFE_XCM_VERSION: u32 = xcm::prelude::XCM_VERSION;
/// Parachain id used for gensis config presets of parachain template.
const PARACHAIN_ID: u32 = 1000;
pub const PARACHAIN_ID: u32 = 1000;

/// Generate the session keys from individual elements.
///
Expand Down
1 change: 1 addition & 0 deletions templates/parachain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ use frame_support::weights::{
constants::WEIGHT_REF_TIME_PER_SECOND, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients,
WeightToFeePolynomial,
};
pub use genesis_config_presets::PARACHAIN_ID;
pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;
pub use sp_runtime::{MultiAddress, Perbill, Permill};

Expand Down

0 comments on commit f437375

Please sign in to comment.