Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
adapt trappist to run on westend live
Browse files Browse the repository at this point in the history
  • Loading branch information
José Molina committed Feb 14, 2024
1 parent fe525f4 commit e7ca6ad
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ parachain-info = { package = "staging-parachain-info", version = "0.4.0", defaul
cumulus-pallet-session-benchmarking = { default-features = false, version = "6.0.0" }

# Polkadot
polkadot-cli = { version = "4.0.0", features = ["rococo-native"] }
polkadot-cli = { version = "4.0.0", features = ["westend-native"] }
polkadot-primitives = "4.0.0"
polkadot-service = "4.0.0"
polkadot-runtime-parachains = { version = "4.0.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/trappist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ pub fn trappist_live_config() -> ChainSpec {
None,
None,
Some(properties),
Extensions { relay_chain: "rococo".into(), para_id: TRAPPIST_PARA_ID },
Extensions { relay_chain: "westend".into(), para_id: TRAPPIST_PARA_ID },
)
}

Expand Down
4 changes: 2 additions & 2 deletions node/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ fn load_spec(id: &str) -> std::result::Result<Box<dyn ChainSpec>, String> {
"dev" | "trappist-dev" => Box::new(chain_spec::trappist::development_config()),
#[cfg(feature = "trappist-runtime")]
"trappist-local" => Box::new(chain_spec::trappist::trappist_local_testnet_config()),
// Live chain spec for Rococo - Trappist
// Live chain spec for Westend - Trappist
#[cfg(feature = "trappist-runtime")]
"" | "trappist-rococo" => Box::new(chain_spec::trappist::trappist_live_config()),
"" | "trappist-westend" => Box::new(chain_spec::trappist::trappist_live_config()),
#[cfg(feature = "stout-runtime")]
"stout-dev" => unimplemented!("stout-dev chain spec is not available yet"),
#[cfg(feature = "stout-runtime")]
Expand Down
4 changes: 2 additions & 2 deletions runtime/trappist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ impl_opaque_keys! {

#[sp_version::runtime_version]
pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("trappist-rococo"),
impl_name: create_runtime_str!("trappist-rococo"),
spec_name: create_runtime_str!("trappist-westend"),
impl_name: create_runtime_str!("trappist-westend"),
authoring_version: 1,
spec_version: 13100,
impl_version: 0,
Expand Down
4 changes: 2 additions & 2 deletions runtime/trappist/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ use super::{

parameter_types! {
pub const RelayLocation: MultiLocation = MultiLocation::parent();
pub const RelayNetwork: NetworkId = NetworkId::Rococo;
pub const RelayNetwork: NetworkId = NetworkId::Westend;
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
pub SelfReserve: MultiLocation = MultiLocation::here();
Expand All @@ -72,7 +72,7 @@ parameter_types! {
pub const ExecutiveBody: BodyId = BodyId::Executive;
pub const MaxAssetsIntoHolding: u32 = 64;
pub UniversalLocation: InteriorMultiLocation = (
GlobalConsensus(NetworkId::Rococo),
GlobalConsensus(NetworkId::Westend),
Parachain(ParachainInfo::parachain_id().into()),
).into();
}
Expand Down

0 comments on commit e7ca6ad

Please sign in to comment.