git.delta.rocks / unique-network / refs/commits / 26464481c8ed

difftreelog

switch local testnet on westend relay

Igor Kozyrev2022-04-29parent: #b49f8c1.patch.diff
in: master

4 files changed

modifiedlaunch-config-full.jsondiffbeforeafterboth
1{1{
2 "relaychain": {2 "relaychain": {
3 "bin": "../polkadot/target/release/polkadot",3 "bin": "../polkadot/target/release/polkadot",
4 "chain": "rococo-local",4 "chain": "westend-local",
5 "nodes": [5 "nodes": [
6 {6 {
7 "name": "alice",7 "name": "alice",
modifiedlaunch-config.jsondiffbeforeafterboth
--- a/launch-config.json
+++ b/launch-config.json
@@ -1,7 +1,7 @@
 {
     "relaychain": {
         "bin": "../polkadot/target/release/polkadot",
-        "chain": "rococo-local",
+        "chain": "westend-local",
         "nodes": [
             {
                 "name": "alice",
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
--- a/node/cli/src/chain_spec.rs
+++ b/node/cli/src/chain_spec.rs
@@ -243,7 +243,7 @@
 	)
 }
 
-pub fn local_testnet_rococo_config() -> DefaultChainSpec {
+pub fn local_testnet_config() -> DefaultChainSpec {
 	let mut properties = Map::new();
 	properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into());
 	properties.insert("tokenDecimals".into(), 18.into());
@@ -305,7 +305,7 @@
 		Some(properties),
 		// Extensions
 		Extensions {
-			relay_chain: "rococo-local".into(),
+			relay_chain: "westend-local".into(),
 			para_id: 1000,
 		},
 	)
modifiednode/cli/src/command.rsdiffbeforeafterboth
--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -76,7 +76,7 @@
 fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
 	Ok(match id {
 		"dev" => Box::new(chain_spec::development_config()),
-		"" | "local" => Box::new(chain_spec::local_testnet_rococo_config()),
+		"" | "local" => Box::new(chain_spec::local_testnet_config()),
 		path => {
 			let path = std::path::PathBuf::from(path);
 			let chain_spec = Box::new(chain_spec::OpalChainSpec::from_json_file(path.clone())?)