From ca3b339af11be37e87b0ca75801c05f3b79cc837 Mon Sep 17 00:00:00 2001 From: Taras Rusakovich Date: Mon, 28 Oct 2024 15:53:17 +0300 Subject: [PATCH] change weight to 10 % from reserved --- runtime/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 933fe16a09..c1cc1f8116 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -1815,8 +1815,8 @@ impl pallet_offences::Config for Runtime { parameter_types! { pub const MaxVestingSchedules: u32 = 20; pub const MinVestedTransfer: Balance = 1; - // TODO: set after benchmarking - pub MaxWeightForAutoClaim: Weight = Perbill::from_percent(10) * BlockWeights::get().max_block; + pub MaxWeightForAutoClaim: Weight = BlockWeights::get().per_class.get(DispatchClass::Operational) + .reserved.expect("Error get reserved weight") * Perbill::from_percent(10); } impl vested_rewards::Config for Runtime {