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
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",
modifiednode/cli/src/chain_spec.rsdiffbeforeafterboth
243 )243 )
244}244}
245245
246pub fn local_testnet_rococo_config() -> DefaultChainSpec {246pub fn local_testnet_config() -> DefaultChainSpec {
247 let mut properties = Map::new();247 let mut properties = Map::new();
248 properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into());248 properties.insert("tokenSymbol".into(), default_runtime::TOKEN_SYMBOL.into());
249 properties.insert("tokenDecimals".into(), 18.into());249 properties.insert("tokenDecimals".into(), 18.into());
305 Some(properties),305 Some(properties),
306 // Extensions306 // Extensions
307 Extensions {307 Extensions {
308 relay_chain: "rococo-local".into(),308 relay_chain: "westend-local".into(),
309 para_id: 1000,309 para_id: 1000,
310 },310 },
311 )311 )
modifiednode/cli/src/command.rsdiffbeforeafterboth
76fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {76fn load_spec(id: &str) -> std::result::Result<Box<dyn sc_service::ChainSpec>, String> {
77 Ok(match id {77 Ok(match id {
78 "dev" => Box::new(chain_spec::development_config()),78 "dev" => Box::new(chain_spec::development_config()),
79 "" | "local" => Box::new(chain_spec::local_testnet_rococo_config()),79 "" | "local" => Box::new(chain_spec::local_testnet_config()),
80 path => {80 path => {
81 let path = std::path::PathBuf::from(path);81 let path = std::path::PathBuf::from(path);
82 let chain_spec = Box::new(chain_spec::OpalChainSpec::from_json_file(path.clone())?)82 let chain_spec = Box::new(chain_spec::OpalChainSpec::from_json_file(path.clone())?)