Skip to content

Commit

Permalink
account for paritytech#14471
Browse files Browse the repository at this point in the history
  • Loading branch information
Lederstrumpf committed Aug 7, 2023
1 parent c6c36e3 commit 6078b41
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frame/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ pub mod pallet {
/// against the extracted offender. If both are valid, the offence
/// will be reported.
#[pallet::call_index(2)]
#[pallet::weight(T::WeightInfo::report_equivocation(key_owner_proof.validator_count()))]
#[pallet::weight(T::WeightInfo::report_equivocation(
key_owner_proof.validator_count(),
T::MaxNominators::get(),
))]
pub fn report_invalid_fork_commitment(
origin: OriginFor<T>,
invalid_fork_proof: Box<
Expand Down Expand Up @@ -307,7 +310,7 @@ pub mod pallet {
/// if the block author is defined it will be defined as the equivocation
/// reporter.
#[pallet::call_index(3)]
#[pallet::weight(T::WeightInfo::report_equivocation(key_owner_proof.validator_count()))]
#[pallet::weight(T::WeightInfo::report_equivocation(key_owner_proof.validator_count(), T::MaxNominators::get(),))]
pub fn report_invalid_fork_commitment_unsigned(
origin: OriginFor<T>,
invalid_fork_proof: Box<
Expand Down

0 comments on commit 6078b41

Please sign in to comment.