Skip to content

Commit

Permalink
account for paritytech#2446
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Nov 28, 2023
1 parent 86629c2 commit 2b6dbdf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions substrate/primitives/consensus/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use codec::{Codec, Decode, Encode};
use scale_info::TypeInfo;
use sp_application_crypto::RuntimeAppPublic;
use sp_core::H256;
use sp_runtime::traits::{Hash, Header, Keccak256, NumberFor};
use sp_runtime::traits::{Hash, Header as HeaderT, Keccak256, NumberFor};
use sp_std::prelude::*;

/// Key type for BEEFY module.
Expand Down Expand Up @@ -392,7 +392,7 @@ fn check_header_proof<Header>(
expected_header_hash: &Header::Hash,
) -> bool
where
Header: sp_api::HeaderT,
Header: HeaderT,
{
if let Some(correct_header) = correct_header {
let expected_mmr_root_digest = mmr::find_mmr_root_digest::<Header>(correct_header);
Expand Down Expand Up @@ -425,7 +425,7 @@ fn check_ancestry_proof<Header, NodeHash, Hasher>(
mmr_size: u64,
) -> bool
where
Header: sp_api::HeaderT,
Header: HeaderT,
NodeHash: Clone + Debug + PartialEq + Encode + Decode,
Hasher: mmr_lib::Merge<Item = NodeHash>,
{
Expand Down Expand Up @@ -514,7 +514,7 @@ pub fn check_fork_equivocation_proof<Id, MsgHash, Header, NodeHash, Hasher>(
where
Id: BeefyAuthorityId<MsgHash> + PartialEq,
MsgHash: Hash,
Header: sp_api::HeaderT,
Header: HeaderT,
NodeHash: Clone + Debug + PartialEq + Encode + Decode,
Hasher: mmr_lib::Merge<Item = NodeHash>,
{
Expand Down

0 comments on commit 2b6dbdf

Please sign in to comment.