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

fix finalization when using custom genesis

parent 0bfd3e4d
No related branches found
No related tags found
No related merge requests found
Pipeline #19468 passed
......@@ -294,7 +294,11 @@ where
return Err("session_keys field forbidden".to_owned());
}
if *idty_index == 1 {
// online authority
initial_authorities.insert(1, (identity.pubkey.clone(), true));
} else {
// authority but offline
initial_authorities.insert(*idty_index, (identity.pubkey.clone(), false));
}
} else {
initial_authorities.insert(
......@@ -367,6 +371,8 @@ where
return Err("The session_keys field must be filled in for at least one smith.".to_owned());
}
// dbg!(initial_authorities.clone());
let genesis_data = GenesisData {
accounts,
certs_by_receiver,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment