Skip to content
Snippets Groups Projects
Commit bf3376c8 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

ref: reorder keys to limit confusion

parent 307ed7ee
No related branches found
No related tags found
1 merge request!154fix finalization when using custom genesis
Pipeline #19476 passed
...@@ -34,8 +34,8 @@ use std::collections::BTreeMap; ...@@ -34,8 +34,8 @@ use std::collections::BTreeMap;
pub type AuthorityKeys = ( pub type AuthorityKeys = (
AccountId, AccountId,
BabeId,
GrandpaId, GrandpaId,
BabeId,
ImOnlineId, ImOnlineId,
AuthorityDiscoveryId, AuthorityDiscoveryId,
); );
...@@ -53,8 +53,8 @@ const TOKEN_SYMBOL: &str = "ĞD"; ...@@ -53,8 +53,8 @@ const TOKEN_SYMBOL: &str = "ĞD";
pub fn get_authority_keys_from_seed(s: &str) -> AuthorityKeys { pub fn get_authority_keys_from_seed(s: &str) -> AuthorityKeys {
( (
get_account_id_from_seed::<sr25519::Public>(s), get_account_id_from_seed::<sr25519::Public>(s),
get_from_seed::<BabeId>(s),
get_from_seed::<GrandpaId>(s), get_from_seed::<GrandpaId>(s),
get_from_seed::<BabeId>(s),
get_from_seed::<ImOnlineId>(s), get_from_seed::<ImOnlineId>(s),
get_from_seed::<AuthorityDiscoveryId>(s), get_from_seed::<AuthorityDiscoveryId>(s),
) )
...@@ -86,8 +86,8 @@ fn session_keys( ...@@ -86,8 +86,8 @@ fn session_keys(
authority_discovery: AuthorityDiscoveryId, authority_discovery: AuthorityDiscoveryId,
) -> SessionKeys { ) -> SessionKeys {
SessionKeys { SessionKeys {
babe,
grandpa, grandpa,
babe,
im_online, im_online,
authority_discovery, authority_discovery,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment