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
f1d99e21
Commit
f1d99e21
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
fix(
#125
): ignore "session_keys" error if authority is forced
parent
f419837f
No related branches found
No related tags found
No related merge requests found
Pipeline
#33339
failed
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
node/src/chain_spec/gen_genesis_data.rs
+1
-2
1 addition, 2 deletions
node/src/chain_spec/gen_genesis_data.rs
with
1 addition
and
2 deletions
node/src/chain_spec/gen_genesis_data.rs
+
1
−
2
View file @
f1d99e21
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
use
crate
::
chain_spec
::
gdev
::{
get_authority_keys_from_seed
,
get_env
,
session_keys
,
AuthorityKeys
};
use
crate
::
chain_spec
::
gdev
::{
get_authority_keys_from_seed
,
get_env
,
session_keys
,
AuthorityKeys
};
use
crate
::
chain_spec
::{
clique_wot
,
get_account_id_from_seed
,
NAMES
};
use
crate
::
chain_spec
::{
clique_wot
,
get_account_id_from_seed
,
NAMES
};
use
common_runtime
::
*
;
use
common_runtime
::
*
;
use
maplit
::
btreemap
;
use
serde
::{
de
::
DeserializeOwned
,
Deserialize
,
Serialize
};
use
serde
::{
de
::
DeserializeOwned
,
Deserialize
,
Serialize
};
use
sp_core
::
crypto
::
AccountId32
;
use
sp_core
::
crypto
::
AccountId32
;
use
sp_core
::{
blake2_256
,
sr25519
,
Decode
,
Encode
,
H256
};
use
sp_core
::{
blake2_256
,
sr25519
,
Decode
,
Encode
,
H256
};
...
@@ -381,7 +380,7 @@ where
...
@@ -381,7 +380,7 @@ where
// Initial authorities
// Initial authorities
if
let
Some
(
authority_idty_index
)
=
authority_idty_index
{
if
let
Some
(
authority_idty_index
)
=
authority_idty_index
{
if
session_keys
.is_some
()
{
if
session_keys
.is_some
()
{
return
Err
(
"session_keys
field forbidden"
.to_owned
());
println!
(
"session_keys
are ignored due to forced authority"
)
}
}
if
*
idty_index
==
authority_idty_index
{
if
*
idty_index
==
authority_idty_index
{
// online authority
// online authority
...
...
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