Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fixes after master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy committed Mar 17, 2023
1 parent 370cddb commit 055511b
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 70 deletions.
2 changes: 1 addition & 1 deletion node/core/backing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ async fn handle_active_leaves_update<Context>(

let signing_context = SigningContext { parent_hash: parent, session_index };
let validator =
match Validator::construct(&validators, signing_context.clone(), keystore.clone()).await {
match Validator::construct(&validators, signing_context.clone(), keystore.clone()) {
Ok(v) => Some(v),
Err(util::Error::NotAValidator) => None,
Err(e) => {
Expand Down
9 changes: 4 additions & 5 deletions node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ where

let rpc_extensions_builder = {
let client = client.clone();
let keystore = keystore_container.sync_keystore();
let keystore = keystore_container.keystore();
let transaction_pool = transaction_pool.clone();
let select_chain = select_chain.clone();
let chain_spec = config.chain_spec.cloned_box();
Expand Down Expand Up @@ -924,7 +924,7 @@ where
config,
backend: backend.clone(),
client: client.clone(),
keystore: keystore_container.sync_keystore(),
keystore: keystore_container.keystore(),
network: network.clone(),
sync_service: sync_service.clone(),
rpc_builder: Box::new(rpc_extensions_builder),
Expand Down Expand Up @@ -1091,7 +1091,7 @@ where
overseer_handle.as_ref().ok_or(Error::AuthoritiesRequireRealOverseer)?.clone();
let slot_duration = babe_link.config().slot_duration();
let babe_config = babe::BabeParams {
keystore: keystore_container.sync_keystore(),
keystore: keystore_container.keystore(),
client: client.clone(),
select_chain,
block_import,
Expand Down Expand Up @@ -1135,8 +1135,7 @@ where

// if the node isn't actively participating in consensus then it doesn't
// need a keystore, regardless of which protocol we use below.
let keystore_opt =
if role.is_authority() { Some(keystore_container.sync_keystore()) } else { None };
let keystore_opt = if role.is_authority() { Some(keystore_container.keystore()) } else { None };

if enable_beefy {
let justifications_protocol_name = beefy_on_demand_justifications_handler.protocol_name();
Expand Down
Loading

0 comments on commit 055511b

Please sign in to comment.