Skip to content

Commit

Permalink
Fix benchmarking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wilwade committed Jun 10, 2024
1 parent 0ae1fbf commit 14a5ed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pallets/capacity/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ fn fill_reward_pool_chunks<T: Config>() {
for i in 0..chunks {
let mut new_chunk = RewardPoolHistoryChunk::<T>::new();
for j in 0..chunk_len {
assert_ok!(new_chunk.try_insert((i + 1u32).into(), (1000u32 * (j + i)).into()));
let era = (i + 1) * (j + 1);
assert_ok!(new_chunk.try_insert(era.into(), (1000u32 * era).into()));
}
ProviderBoostRewardPools::<T>::set(i, Some(new_chunk));
}
Expand Down

0 comments on commit 14a5ed1

Please sign in to comment.