Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
43460507
Commit
43460507
authored
3 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
spec: handle currency name gdem
parent
9bc16904
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
node/src/command.rs
+1
-1
1 addition, 1 deletion
node/src/command.rs
node/src/service.rs
+1
-1
1 addition, 1 deletion
node/src/service.rs
runtime/gtest/src/lib.rs
+2
-2
2 additions, 2 deletions
runtime/gtest/src/lib.rs
with
4 additions
and
4 deletions
node/src/command.rs
+
1
−
1
View file @
43460507
...
...
@@ -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
)
?
)
...
...
This diff is collapsed.
Click to expand it.
node/src/service.rs
+
1
−
1
View file @
43460507
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
runtime/gtest/src/lib.rs
+
2
−
2
View file @
43460507
...
...
@@ -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!
(
"g
test
"
),
impl_name
:
create_runtime_str!
(
"g
test
"
),
spec_name
:
create_runtime_str!
(
"g
dem
"
),
impl_name
:
create_runtime_str!
(
"g
dem
"
),
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`,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment