diff --git a/node/specs/gtest_client-specs.json b/node/specs/gtest_client-specs.json index a554af2e64ad2ecf26fd2444325e7d2d881c1ed1..b14c21695eb290f66778a65ee36532e5b7f9f989 100644 --- a/node/specs/gtest_client-specs.json +++ b/node/specs/gtest_client-specs.json @@ -1,6 +1,6 @@ { - "name": "Ğdev", - "id": "gdev", + "name": "ĞTest", + "id": "gtest", "chainType": "Live", "bootNodes": [ "/dns/gdev.p2p.legal/tcp/30334/p2p/12D3KooW9v5WsP38qU1kmafvA4CDw2vzYnFoWtdUqwonZtJK597r", @@ -15,6 +15,6 @@ ], "properties": { "tokenDecimals": 2, - "tokenSymbol": "ĞD" + "tokenSymbol": "ĞT" } } \ No newline at end of file diff --git a/node/src/command.rs b/node/src/command.rs index 4d4047c2015b96106bba0ab2602a9e5343dc7f13..d151a7fb6529c6ed437720228aa735726c068240 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -191,8 +191,6 @@ impl SubstrateCli for Cli { let runtime_type = if starts_with("g1") { RuntimeType::G1 - } else if starts_with("gdem") { - RuntimeType::GTest } else if starts_with("dev") || starts_with("gdev") { RuntimeType::GDev } else if starts_with("gt") { @@ -226,7 +224,7 @@ impl SubstrateCli for Cli { RuntimeType::GTest => >est_runtime::VERSION, #[cfg(feature = "gdev")] RuntimeType::GDev => &gdev_runtime::VERSION, - _ => panic!("unknown runtime"), + _ => panic!("unknown runtime {:?}", spec.runtime_type()), } } } diff --git a/node/src/service.rs b/node/src/service.rs index 30edcb7ae1bf2fbd7c36dddb166986b461f90a8e..6562b6584d5066396d394da7344140c82f19b519 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -98,6 +98,7 @@ impl sc_executor::NativeExecutionDispatch for G1Executor { } } +#[derive(Debug)] pub enum RuntimeType { G1, GDev, @@ -115,11 +116,9 @@ impl IdentifyRuntimeType for Box<dyn sc_chain_spec::ChainSpec> { fn runtime_type(&self) -> RuntimeType { if self.id().starts_with("g1") { RuntimeType::G1 - } else if self.id().starts_with("gdem") { - RuntimeType::GTest } else if self.id().starts_with("dev") || self.id().starts_with("gdev") { RuntimeType::GDev - } else if self.id().starts_with("gt") { + } else if self.id().starts_with("gtest") { RuntimeType::GTest } else { panic!("unknown runtime")