Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Fix polkadot benchmarks for remark. #7716

Merged
1 commit merged into from
Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion frame/system/benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use frame_benchmarking::{benchmarks, whitelisted_caller};
use frame_support::{
storage::{self, StorageMap},
traits::Get,
weights::DispatchClass,
};
use frame_system::{Module as System, Call, RawOrigin, DigestItemOf, AccountInfo};

Expand All @@ -40,7 +41,7 @@ benchmarks! {
_ { }

remark {
let b in 0 .. T::BlockWeights::get().max_block as u32;
let b in 0 .. *T::BlockLength::get().max.get(DispatchClass::Normal) as u32;
let remark_message = vec![1; b as usize];
let caller = whitelisted_caller();
}: _(RawOrigin::Signed(caller), remark_message)
Expand Down