From 60d3b3a55e8f2385ca5223da4ca50419ca9ffceb 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 b073773d0712..eb35c3e447ce 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>;