From 260f34340116ba0d19ec46c47e973482563d0090 Mon Sep 17 00:00:00 2001 From: Dmitry Lavrenov Date: Wed, 13 Mar 2024 15:59:06 +0300 Subject: [PATCH] [substrate-apply] humanode-runtime: Benchmark pallet sudo (#13880) --- crates/humanode-runtime/Cargo.toml | 1 + crates/humanode-runtime/src/lib.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crates/humanode-runtime/Cargo.toml b/crates/humanode-runtime/Cargo.toml index 8d339e23f..5b999fb15 100644 --- a/crates/humanode-runtime/Cargo.toml +++ b/crates/humanode-runtime/Cargo.toml @@ -132,6 +132,7 @@ runtime-benchmarks = [ "pallet-im-online/runtime-benchmarks", "pallet-multisig/runtime-benchmarks", "pallet-offences/runtime-benchmarks", + "pallet-sudo/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", "pallet-token-claims/runtime-benchmarks", "pallet-utility/runtime-benchmarks", diff --git a/crates/humanode-runtime/src/lib.rs b/crates/humanode-runtime/src/lib.rs index df2d595f9..8c9aca1c9 100644 --- a/crates/humanode-runtime/src/lib.rs +++ b/crates/humanode-runtime/src/lib.rs @@ -481,6 +481,7 @@ impl pallet_transaction_payment::Config for Runtime { impl pallet_sudo::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; } pub struct PrimitiveAuthTicketConverter; @@ -1056,6 +1057,7 @@ mod benches { [pallet_grandpa, Grandpa] [pallet_im_online, ImOnline] [pallet_multisig, Multisig] + [pallet_sudo, Sudo] [pallet_timestamp, Timestamp] [pallet_token_claims, TokenClaims] [pallet_utility, Utility]