From d6a5dd6da68fb3c910b87406d8847a219f38bb51 Mon Sep 17 00:00:00 2001 From: Tarek Mohamed Abdalla Date: Fri, 2 Aug 2024 09:44:05 +0100 Subject: [PATCH] whitelist storage --- substrate/frame/parameters/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/substrate/frame/parameters/src/lib.rs b/substrate/frame/parameters/src/lib.rs index b073773d07120..eb35c3e447ce3 100644 --- a/substrate/frame/parameters/src/lib.rs +++ b/substrate/frame/parameters/src/lib.rs @@ -193,7 +193,12 @@ pub mod pallet { } /// Stored parameters. + /// + /// ## Storage Whitelist + /// Since we account for all parameters read weight for each block, + /// don't double count it in other pallet benchmarks #[pallet::storage] + #[pallet::whitelist_storage] pub type Parameters = StorageMap<_, Blake2_128Concat, KeyOf, ValueOf, OptionQuery>;