Companion for Substrate#14373 (#7572)

* rename BEEFY `crypto` →`ecdsa_crypto`

* - bump up `BeefyApi` to version 3
- deal with `PeerId` error.

* update BEEFY dependency names for `fake-runtime` and `chain_spec`
revert Cargo.toml

* cargo fmt

* Use master Cargo.lock

* update lockfile for {"substrate"}

---------

Co-authored-by: Davide Galassi <davxy@datawok.net>
Co-authored-by: parity-processbot <>
This commit is contained in:
drskalman
2023-08-02 17:25:12 +02:00
committed by GitHub
parent 253c505edc
commit 2bbc7a73a3
9 changed files with 206 additions and 203 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ use runtime_parachains::{
use authority_discovery_primitives::AuthorityId as AuthorityDiscoveryId;
use beefy_primitives::{
crypto::{AuthorityId as BeefyId, Signature as BeefySignature},
ecdsa_crypto::{AuthorityId as BeefyId, Signature as BeefySignature},
mmr::{BeefyDataProvider, MmrLeafVersion},
};
@@ -1819,8 +1819,8 @@ sp_api::impl_runtime_apis! {
}
}
#[api_version(2)]
impl beefy_primitives::BeefyApi<Block> for Runtime {
#[api_version(3)]
impl beefy_primitives::BeefyApi<Block, BeefyId> for Runtime {
fn beefy_genesis() -> Option<BlockNumber> {
Beefy::genesis_block()
}