Skip to content
Snippets Groups Projects
Commit f1d99e21 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

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
...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment