diff --git a/node/src/command.rs b/node/src/command.rs index 2948865552d72a4d165391d29814ffd83ba3681b..435f883c1aff2b4d3eccc4da6af5c3883fa4ee8f 100644 --- a/node/src/command.rs +++ b/node/src/command.rs @@ -66,7 +66,7 @@ impl SubstrateCli for Cli { if starts_with("g1") { Box::new(chain_spec::g1::ChainSpec::from_json_file(path)?) - } else if starts_with("gtest") { + } else if starts_with("gdem") || starts_with("gtest") { Box::new(chain_spec::gtest::ChainSpec::from_json_file(path)?) } else if starts_with("gdev") { Box::new(chain_spec::gdev::ChainSpec::from_json_file(path)?) diff --git a/node/src/service.rs b/node/src/service.rs index e4833286d16575f3672a7c2d0196bcb742b9ac4c..a95eabe904d7b5f7a3cba196125bf1fe952285c4 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -114,7 +114,7 @@ impl IdentifyVariant for Box<dyn sc_chain_spec::ChainSpec> { } fn is_test(&self) -> bool { - self.id().starts_with("gtest") + self.id().starts_with("gdem") || self.id().starts_with("gtest") } fn is_dev(&self) -> bool { diff --git a/runtime/gtest/src/lib.rs b/runtime/gtest/src/lib.rs index a2c7ff87df5acdb832b6e537a8d2db4cb435eb60..b7b3900403a90c3e68fd4684c66633e93f7f4172 100644 --- a/runtime/gtest/src/lib.rs +++ b/runtime/gtest/src/lib.rs @@ -94,8 +94,8 @@ pub mod opaque { // https://substrate.dev/docs/en/knowledgebase/runtime/upgrades#runtime-versioning #[sp_version::runtime_version] pub const VERSION: RuntimeVersion = RuntimeVersion { - spec_name: create_runtime_str!("gtest"), - impl_name: create_runtime_str!("gtest"), + spec_name: create_runtime_str!("gdem"), + impl_name: create_runtime_str!("gdem"), authoring_version: 1, // The version of the runtime specification. A full node will not attempt to use its native // runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`,