From ff8d0af3e6d1c8277a71f7f073a42325d35caf05 Mon Sep 17 00:00:00 2001
From: librelois <c@elo.tf>
Date: Mon, 30 May 2022 20:00:31 +0200
Subject: [PATCH] fix(runtime): use correct values for spec_name and impl_name

---
 runtime/g1/src/lib.rs    | 2 +-
 runtime/gdev/src/lib.rs  | 2 +-
 runtime/gtest/src/lib.rs | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/runtime/g1/src/lib.rs b/runtime/g1/src/lib.rs
index e77e56543..6c64ed3ec 100644
--- a/runtime/g1/src/lib.rs
+++ b/runtime/g1/src/lib.rs
@@ -77,7 +77,7 @@ common_runtime::declare_session_keys! {}
 #[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
     spec_name: create_runtime_str!("g1"),
-    impl_name: create_runtime_str!("g1"),
+    impl_name: create_runtime_str!("duniter-g1"),
     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`,
diff --git a/runtime/gdev/src/lib.rs b/runtime/gdev/src/lib.rs
index d46ecfdec..f062f16dd 100644
--- a/runtime/gdev/src/lib.rs
+++ b/runtime/gdev/src/lib.rs
@@ -78,7 +78,7 @@ common_runtime::declare_session_keys! {}
 #[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
     spec_name: create_runtime_str!("gdev"),
-    impl_name: create_runtime_str!("gdev"),
+    impl_name: create_runtime_str!("duniter-gdev"),
     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`,
diff --git a/runtime/gtest/src/lib.rs b/runtime/gtest/src/lib.rs
index 51ba57f7e..f72dc9c19 100644
--- a/runtime/gtest/src/lib.rs
+++ b/runtime/gtest/src/lib.rs
@@ -76,8 +76,8 @@ common_runtime::declare_session_keys! {}
 //   https://substrate.dev/docs/en/knowledgebase/runtime/upgrades#runtime-versioning
 #[sp_version::runtime_version]
 pub const VERSION: RuntimeVersion = RuntimeVersion {
-    spec_name: create_runtime_str!("gdem"),
-    impl_name: create_runtime_str!("gdem"),
+    spec_name: create_runtime_str!("gtest"),
+    impl_name: create_runtime_str!("duniter-gtest"),
     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`,
-- 
GitLab