Skip to content

Commit

Permalink
fix: cess pallet benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ytqaljn committed Jun 3, 2024
1 parent 5aef763 commit c4b2ab6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
6 changes: 3 additions & 3 deletions standalone/chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ runtime-benchmarks = [
"pallet-cess-staking/runtime-benchmarks",
"pallet-cess-treasury/runtime-benchmarks",
"pallet-tee-worker/runtime-benchmarks",
# "pallet-audit/runtime-benchmarks",
# "pallet-file-bank/runtime-benchmarks",
# "pallet-sminer/runtime-benchmarks",
"pallet-audit/runtime-benchmarks",
"pallet-file-bank/runtime-benchmarks",
"pallet-sminer/runtime-benchmarks",
"pallet-storage-handler/runtime-benchmarks",
"pallet-oss/runtime-benchmarks",
"pallet-cacher/runtime-benchmarks",
Expand Down
29 changes: 15 additions & 14 deletions standalone/chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1748,11 +1748,12 @@ mod benches {
[pallet_asset_rate, AssetRate]
[pallet_utility, Utility]
[pallet_evm, EVM]
// [pallet_audit, AuditBench::<Runtime>]
// [pallet_file_bank, FileBankBench::<Runtime>]
// [pallet_sminer, SminerBench::<Runtime>]
// [pallet_storage_handler, StorageHandler]
// [pallet_oss, Oss]
[pallet_audit, AuditBench::<Runtime>]
[pallet_file_bank, FileBankBench::<Runtime>]
[pallet_sminer, SminerBench::<Runtime>]
[pallet_storage_handler, StorageHandler]
[pallet_oss, Oss]
[pallet_cacher, Cacher]
);
}

Expand Down Expand Up @@ -2154,9 +2155,9 @@ impl_runtime_apis! {
use pallet_election_provider_support_benchmarking::Pallet as EPSBench;
use frame_system_benchmarking::Pallet as SystemBench;
use baseline::Pallet as BaselineBench;
// use pallet_sminer::benchmarking::Pallet as SminerBench;
// use pallet_file_bank::benchmarking::Pallet as FileBankBench;
// use pallet_audit::benchmarking::Pallet as AuditBench;
use pallet_sminer::benchmarking::Pallet as SminerBench;
use pallet_file_bank::benchmarking::Pallet as FileBankBench;
use pallet_audit::benchmarking::Pallet as AuditBench;

let mut list = Vec::<BenchmarkList>::new();
list_benchmarks!(list, extra);
Expand All @@ -2176,16 +2177,16 @@ impl_runtime_apis! {
use pallet_election_provider_support_benchmarking::Pallet as EPSBench;
use frame_system_benchmarking::Pallet as SystemBench;
use baseline::Pallet as BaselineBench;
// impl pallet_sminer::benchmarking::Pallet for SminerBench {};
// impl pallet_file_bank::benchmarking::Pallet for FileBankBench {};
// impl pallet_audit::benchmarking::Pallet for AuditBench {};
use pallet_sminer::benchmarking::Pallet as SminerBench;
use pallet_file_bank::benchmarking::Pallet as FileBankBench;
use pallet_audit::benchmarking::Pallet as AuditBench;

impl pallet_election_provider_support_benchmarking::Config for Runtime {}
impl frame_system_benchmarking::Config for Runtime {}
impl baseline::Config for Runtime {}
// impl pallet_sminer::benchmarking::Config for Runtime {}
// impl pallet_file_bank::benchmarking::Config for Runtime {}
// impl pallet_audit::benchmarking::Config for Runtime {}
impl pallet_sminer::benchmarking::Config for Runtime {}
impl pallet_file_bank::benchmarking::Config for Runtime {}
impl pallet_audit::benchmarking::Config for Runtime {}

use frame_support::traits::WhitelistedStorageKeys;
let mut whitelist: Vec<TrackedStorageKey> = AllPalletsWithSystem::whitelisted_storage_keys();
Expand Down

0 comments on commit c4b2ab6

Please sign in to comment.