mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +00:00
Bump BEEFY (#3302)
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
//! There is also the [`Client`] enum that combines all the different clients into one common structure.
|
||||
|
||||
use std::sync::Arc;
|
||||
use beefy_primitives::ecdsa::AuthorityId as BeefyId;
|
||||
use sp_api::{ProvideRuntimeApi, CallApiAt, NumberFor};
|
||||
use sp_blockchain::HeaderBackend;
|
||||
use sp_runtime::{
|
||||
@@ -82,7 +81,7 @@ pub trait RuntimeApiCollection:
|
||||
+ sp_offchain::OffchainWorkerApi<Block>
|
||||
+ sp_session::SessionKeys<Block>
|
||||
+ sp_authority_discovery::AuthorityDiscoveryApi<Block>
|
||||
+ beefy_primitives::BeefyApi<Block, BeefyId>
|
||||
+ beefy_primitives::BeefyApi<Block>
|
||||
where
|
||||
<Self as sp_api::ApiExt<Block>>::StateBackend: sp_api::StateBackend<BlakeTwo256>,
|
||||
{}
|
||||
@@ -102,7 +101,7 @@ where
|
||||
+ sp_offchain::OffchainWorkerApi<Block>
|
||||
+ sp_session::SessionKeys<Block>
|
||||
+ sp_authority_discovery::AuthorityDiscoveryApi<Block>
|
||||
+ beefy_primitives::BeefyApi<Block, BeefyId>,
|
||||
+ beefy_primitives::BeefyApi<Block>,
|
||||
<Self as sp_api::ApiExt<Block>>::StateBackend: sp_api::StateBackend<BlakeTwo256>,
|
||||
{}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
use sp_authority_discovery::AuthorityId as AuthorityDiscoveryId;
|
||||
use sp_consensus_babe::AuthorityId as BabeId;
|
||||
use beefy_primitives::ecdsa::AuthorityId as BeefyId;
|
||||
use beefy_primitives::crypto::AuthorityId as BeefyId;
|
||||
use grandpa::AuthorityId as GrandpaId;
|
||||
#[cfg(feature = "kusama-native")]
|
||||
use kusama_runtime as kusama;
|
||||
|
||||
@@ -45,7 +45,6 @@ use {
|
||||
sp_trie::PrefixedMemoryDB,
|
||||
sc_client_api::ExecutorProvider,
|
||||
grandpa::{self, FinalityProofProvider as GrandpaFinalityProofProvider},
|
||||
beefy_primitives::ecdsa::AuthoritySignature as BeefySignature,
|
||||
sp_runtime::traits::Header as HeaderT,
|
||||
};
|
||||
|
||||
@@ -248,7 +247,7 @@ fn new_partial<RuntimeApi, Executor>(
|
||||
>,
|
||||
grandpa::LinkHalf<Block, FullClient<RuntimeApi, Executor>, FullSelectChain>,
|
||||
babe::BabeLink<Block>,
|
||||
beefy_gadget::notification::BeefySignedCommitmentSender<Block, BeefySignature>,
|
||||
beefy_gadget::notification::BeefySignedCommitmentSender<Block>,
|
||||
),
|
||||
grandpa::SharedVoterState,
|
||||
std::time::Duration, // slot-duration
|
||||
@@ -848,7 +847,7 @@ pub fn new_full<RuntimeApi, Executor, OverseerGenerator>(
|
||||
prometheus_registry: prometheus_registry.clone(),
|
||||
};
|
||||
|
||||
let gadget = beefy_gadget::start_beefy_gadget::<_, beefy_primitives::ecdsa::AuthorityPair, _, _, _>(
|
||||
let gadget = beefy_gadget::start_beefy_gadget::<_, _, _, _>(
|
||||
beefy_params
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user