Skip to content

Commit

Permalink
fix: fixup beefy pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
grw-ms committed Aug 9, 2023
1 parent 6f2474e commit b48f1d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frame/beefy-mmr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ impl<T: Config> LeafDataProvider for Pallet<T> {
impl<T> sp_consensus_beefy::OnNewValidatorSet<<T as pallet_beefy::Config>::BeefyId> for Pallet<T>
where
T: pallet::Config,
<T as pallet_mmr::Config>::Hash: PartialOrd,
{
/// Compute and cache BEEFY authority sets based on updated BEEFY validator sets.
fn on_new_validator_set(
Expand Down Expand Up @@ -190,7 +191,10 @@ impl<T: Config> Pallet<T> {
/// of the next BEEFY authority set.
fn compute_authority_set(
validator_set: &BeefyValidatorSet<<T as pallet_beefy::Config>::BeefyId>,
) -> BeefyAuthoritySet<MerkleRootOf<T>> {
) -> BeefyAuthoritySet<MerkleRootOf<T>>
where
<T as pallet_mmr::Config>::Hash: PartialOrd,
{
let id = validator_set.id();
let beefy_addresses = validator_set
.validators()
Expand Down

0 comments on commit b48f1d0

Please sign in to comment.