From b5e0d4e979222c11b290e345395b30191f1516a5 Mon Sep 17 00:00:00 2001 From: Chralt Date: Tue, 16 Jan 2024 18:20:43 +0100 Subject: [PATCH] Set inflation to more than zero for a full benchmark of handle_inflation (#1234) Update benchmarks.rs --- zrml/court/src/benchmarks.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zrml/court/src/benchmarks.rs b/zrml/court/src/benchmarks.rs index 12cd68d55..39a810659 100644 --- a/zrml/court/src/benchmarks.rs +++ b/zrml/court/src/benchmarks.rs @@ -27,7 +27,7 @@ use crate::{ types::{CourtParticipantInfo, CourtPoolItem, CourtStatus, Draw, Vote}, AppealInfo, BalanceOf, Call, Config, CourtId, CourtPool, Courts, DelegatedStakesOf, MarketIdToCourtId, MarketOf, Pallet as Court, Pallet, Participants, RequestBlock, - SelectedDraws, VoteItem, + SelectedDraws, VoteItem, YearlyInflation, }; use alloc::{vec, vec::Vec}; use frame_benchmarking::{account, benchmarks, whitelisted_caller}; @@ -672,6 +672,7 @@ benchmarks! { >::set_block_number(T::InflationPeriod::get()); let now = >::block_number(); + YearlyInflation::::put(Perbill::from_percent(2)); }: { Court::::handle_inflation(now); }