Companion PR to substrate/6178 (#1167)

* Cast keystore pointer

* Update cargo.lock
This commit is contained in:
Rakan Alhneiti
2020-06-09 14:05:43 +02:00
committed by GitHub
parent 425f4bb060
commit 261d701c5b
2 changed files with 272 additions and 270 deletions
+270 -269
View File
File diff suppressed because it is too large Load Diff
+2 -1
View File
@@ -279,6 +279,7 @@ macro_rules! new_full {
use sc_network::Event;
use sc_client_api::ExecutorProvider;
use futures::stream::StreamExt;
use sp_core::traits::BareCryptoStorePtr;
let is_collator = $collating_for.is_some();
let role = $config.role.clone();
@@ -474,7 +475,7 @@ macro_rules! new_full {
// 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 = if is_authority {
Some(service.keystore())
Some(service.keystore() as BareCryptoStorePtr)
} else {
None
};