From 6078b4130deae9c15e1612135de4bae39a8bf53a Mon Sep 17 00:00:00 2001 From: Robert Hambrock Date: Tue, 1 Aug 2023 20:16:11 +0200 Subject: [PATCH] account for #14471 --- frame/beefy/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frame/beefy/src/lib.rs b/frame/beefy/src/lib.rs index 5b05c7a7fd99a..69a301e13f69b 100644 --- a/frame/beefy/src/lib.rs +++ b/frame/beefy/src/lib.rs @@ -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, invalid_fork_proof: Box< @@ -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, invalid_fork_proof: Box<