pallet_chain_manager/
weights.rs

1
2//! Autogenerated weights for `pallet_chain_manager`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5//! DATE: 2026-05-11, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`,
6//! HIGH RANGE: `[]`
7//! WORST CASE MAP SIZE: `1000000`
8//! HOSTNAME: `Naveens-MacBook-Air.local`, CPU: `<UNKNOWN>`
9//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
10
11// Executed Command:
12// frame-omni-bencher
13// v1
14// benchmark
15// pallet
16// --runtime
17// target/release/wbuild/frame-suite-runtime/frame_suite_runtime.wasm
18// --pallet
19// pallet_chain_manager
20// --extrinsic
21// *
22// --template
23// pallets/.maintain/frame-weight-template.hbs
24// --output
25// pallets/chain-manager/src/weights.rs
26
27#![cfg_attr(rustfmt, rustfmt_skip)]
28#![allow(unused_parens)]
29#![allow(unused_imports)]
30#![allow(missing_docs)]
31
32use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
33use core::marker::PhantomData;
34
35/// Weight functions needed for `pallet_chain_manager`.
36pub trait WeightInfo {
37fn validate() -> Weight;
38fn chill() -> Weight;
39fn declare() -> Weight;
40fn elect() -> Weight;
41fn force_allow_affidavits() -> Weight;
42fn force_affidavit_begins_at() -> Weight;
43fn force_affidavit_ends_at() -> Weight;
44fn force_election_begins_at() -> Weight;
45fn force_election_runner_points_upgrade() -> Weight;
46fn force_validate_tx_priority() -> Weight;
47fn force_election_tx_priority() -> Weight;
48fn force_affidavit_tx_priority() -> Weight;
49fn force_finality_after() -> Weight;
50fn force_finality_ticks() -> Weight;
51fn inspect_elects() -> Weight;
52fn prepare_validation_payload() -> Weight;
53fn inspect_affidavit() -> Weight;
54fn on_offence(n: u32, ) -> Weight;
55fn on_initialize_with_author() -> Weight;
56}
57
58/// Weights for `pallet_chain_manager` using the Substrate node and recommended hardware.
59pub struct SubstrateWeight<T>(PhantomData<T>);
60                impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
61                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
62                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
63                        /// Storage: `Commitment::CommitMap` (r:1 w:0)
64                        /// Proof: `Commitment::CommitMap` (`max_values`: None, `max_size`: Some(1600), added: 4075, mode: `MaxEncodedLen`)
65                        /// Storage: `Commitment::DigestMap` (r:1 w:0)
66                        /// Proof: `Commitment::DigestMap` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
67                        /// Storage: `Authors::MinCollateral` (r:1 w:0)
68                        /// Proof: `Authors::MinCollateral` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
69                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
70                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
71                        /// Storage: `ChainManager::AffidavitKeys` (r:0 w:1)
72                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
73                        fn validate() -> Weight {
74                        // Proof Size summary in bytes:
75                        // Measured: `1075`
76                        // Estimated: `5065`
77                        // Minimum execution time: 45_000_000 picoseconds.
78                        Weight::from_parts(48_000_000,
79                        5065)
80                        .saturating_add(T::DbWeight::get().reads(5_u64))
81                        .saturating_add(T::DbWeight::get().writes(1_u64))
82                        }
83                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
84                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
85                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
86                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
87                        /// Storage: `Session::Validators` (r:1 w:0)
88                        /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
90                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
91                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
92                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
93                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
94                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
95                        /// Storage: `ChainManager::AffidavitKeys` (r:2 w:1)
96                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
97                        /// Storage: `ChainManager::AuthorAffidavits` (r:1 w:0)
98                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
99                        fn chill() -> Weight {
100                        // Proof Size summary in bytes:
101                        // Measured: `844`
102                        // Estimated: `44039`
103                        // Minimum execution time: 42_000_000 picoseconds.
104                        Weight::from_parts(45_000_000,
105                        44039)
106                        .saturating_add(T::DbWeight::get().reads(9_u64))
107                        .saturating_add(T::DbWeight::get().writes(1_u64))
108                        }
109                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
110                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
111                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:1)
112                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
113                        /// Storage: `ChainManager::AllowAffidavits` (r:1 w:0)
114                        /// Proof: `ChainManager::AllowAffidavits` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
115                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
116                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
117                        /// Storage: `Commitment::CommitMap` (r:1 w:0)
118                        /// Proof: `Commitment::CommitMap` (`max_values`: None, `max_size`: Some(1600), added: 4075, mode: `MaxEncodedLen`)
119                        /// Storage: `Commitment::DigestMap` (r:1 w:0)
120                        /// Proof: `Commitment::DigestMap` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
121                        /// Storage: `Authors::MinCollateral` (r:1 w:0)
122                        /// Proof: `Authors::MinCollateral` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
123                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
124                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
125                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
126                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
127                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
128                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
129                        /// Storage: `Authors::AuthorFunders` (r:1 w:0)
130                        /// Proof: `Authors::AuthorFunders` (`max_values`: None, `max_size`: Some(161), added: 2636, mode: `MaxEncodedLen`)
131                        /// Storage: `ChainManager::AuthorAffidavits` (r:0 w:1)
132                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
133                        fn declare() -> Weight {
134                        // Proof Size summary in bytes:
135                        // Measured: `1281`
136                        // Estimated: `5065`
137                        // Minimum execution time: 78_000_000 picoseconds.
138                        Weight::from_parts(82_000_000,
139                        5065)
140                        .saturating_add(T::DbWeight::get().reads(11_u64))
141                        .saturating_add(T::DbWeight::get().writes(2_u64))
142                        }
143                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
144                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
145                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:0)
146                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
147                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
148                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
149                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
150                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
151                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
152                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
153                        /// Storage: `ChainManager::ElectionBeginsAt` (r:1 w:0)
154                        /// Proof: `ChainManager::ElectionBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
155                        /// Storage: `ChainManager::AuthorAffidavits` (r:12 w:0)
156                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
157                        /// Storage: `Authors::MinElected` (r:1 w:0)
158                        /// Proof: `Authors::MinElected` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
159                        /// Storage: `Authors::ForceMaxElected` (r:1 w:0)
160                        /// Proof: `Authors::ForceMaxElected` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
161                        /// Storage: `Authors::Elected` (r:12 w:11)
162                        /// Proof: `Authors::Elected` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
163                        /// Storage: `ChainManager::ElectsPreparedBy` (r:0 w:1)
164                        /// Proof: `ChainManager::ElectsPreparedBy` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
165                        /// Storage: `Authors::RecentElectedOn` (r:0 w:1)
166                        /// Proof: `Authors::RecentElectedOn` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
167                        fn elect() -> Weight {
168                        // Proof Size summary in bytes:
169                        // Measured: `1718`
170                        // Estimated: `517578`
171                        // Minimum execution time: 149_000_000 picoseconds.
172                        Weight::from_parts(162_000_000,
173                        517578)
174                        .saturating_add(T::DbWeight::get().reads(32_u64))
175                        .saturating_add(T::DbWeight::get().writes(13_u64))
176                        }
177                        /// Storage: `ChainManager::AllowAffidavits` (r:0 w:1)
178                        /// Proof: `ChainManager::AllowAffidavits` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
179                        fn force_allow_affidavits() -> Weight {
180                        // Proof Size summary in bytes:
181                        // Measured: `0`
182                        // Estimated: `0`
183                        // Minimum execution time: 4_000_000 picoseconds.
184                        Weight::from_parts(5_000_000,
185                        0)
186                        .saturating_add(T::DbWeight::get().writes(1_u64))
187                        }
188                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
189                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
190                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:0 w:1)
191                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
192                        fn force_affidavit_begins_at() -> Weight {
193                        // Proof Size summary in bytes:
194                        // Measured: `277`
195                        // Estimated: `1489`
196                        // Minimum execution time: 11_000_000 picoseconds.
197                        Weight::from_parts(12_000_000,
198                        1489)
199                        .saturating_add(T::DbWeight::get().reads(1_u64))
200                        .saturating_add(T::DbWeight::get().writes(1_u64))
201                        }
202                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
203                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
204                        /// Storage: `ChainManager::AffidavitEndsAt` (r:0 w:1)
205                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
206                        fn force_affidavit_ends_at() -> Weight {
207                        // Proof Size summary in bytes:
208                        // Measured: `261`
209                        // Estimated: `1489`
210                        // Minimum execution time: 9_000_000 picoseconds.
211                        Weight::from_parts(10_000_000,
212                        1489)
213                        .saturating_add(T::DbWeight::get().reads(1_u64))
214                        .saturating_add(T::DbWeight::get().writes(1_u64))
215                        }
216                        /// Storage: `ChainManager::ElectionBeginsAt` (r:0 w:1)
217                        /// Proof: `ChainManager::ElectionBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
218                        fn force_election_begins_at() -> Weight {
219                        // Proof Size summary in bytes:
220                        // Measured: `0`
221                        // Estimated: `0`
222                        // Minimum execution time: 4_000_000 picoseconds.
223                        Weight::from_parts(5_000_000,
224                        0)
225                        .saturating_add(T::DbWeight::get().writes(1_u64))
226                        }
227                        /// Storage: `ChainManager::ElectionRunnerPointsUpgrade` (r:0 w:1)
228                        /// Proof: `ChainManager::ElectionRunnerPointsUpgrade` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`)
229                        fn force_election_runner_points_upgrade() -> Weight {
230                        // Proof Size summary in bytes:
231                        // Measured: `0`
232                        // Estimated: `0`
233                        // Minimum execution time: 4_000_000 picoseconds.
234                        Weight::from_parts(5_000_000,
235                        0)
236                        .saturating_add(T::DbWeight::get().writes(1_u64))
237                        }
238                        /// Storage: `ChainManager::ValidateTxPriority` (r:0 w:1)
239                        /// Proof: `ChainManager::ValidateTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
240                        fn force_validate_tx_priority() -> Weight {
241                        // Proof Size summary in bytes:
242                        // Measured: `0`
243                        // Estimated: `0`
244                        // Minimum execution time: 4_000_000 picoseconds.
245                        Weight::from_parts(5_000_000,
246                        0)
247                        .saturating_add(T::DbWeight::get().writes(1_u64))
248                        }
249                        /// Storage: `ChainManager::ElectionTxPriority` (r:0 w:1)
250                        /// Proof: `ChainManager::ElectionTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
251                        fn force_election_tx_priority() -> Weight {
252                        // Proof Size summary in bytes:
253                        // Measured: `0`
254                        // Estimated: `0`
255                        // Minimum execution time: 4_000_000 picoseconds.
256                        Weight::from_parts(5_000_000,
257                        0)
258                        .saturating_add(T::DbWeight::get().writes(1_u64))
259                        }
260                        /// Storage: `ChainManager::AffidavitTxPriority` (r:0 w:1)
261                        /// Proof: `ChainManager::AffidavitTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
262                        fn force_affidavit_tx_priority() -> Weight {
263                        // Proof Size summary in bytes:
264                        // Measured: `0`
265                        // Estimated: `0`
266                        // Minimum execution time: 4_000_000 picoseconds.
267                        Weight::from_parts(5_000_000,
268                        0)
269                        .saturating_add(T::DbWeight::get().writes(1_u64))
270                        }
271                        /// Storage: `ChainManager::FinalityAfter` (r:0 w:1)
272                        /// Proof: `ChainManager::FinalityAfter` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
273                        fn force_finality_after() -> Weight {
274                        // Proof Size summary in bytes:
275                        // Measured: `0`
276                        // Estimated: `0`
277                        // Minimum execution time: 4_000_000 picoseconds.
278                        Weight::from_parts(5_000_000,
279                        0)
280                        .saturating_add(T::DbWeight::get().writes(1_u64))
281                        }
282                        /// Storage: `ChainManager::FinalityTicks` (r:0 w:1)
283                        /// Proof: `ChainManager::FinalityTicks` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
284                        fn force_finality_ticks() -> Weight {
285                        // Proof Size summary in bytes:
286                        // Measured: `0`
287                        // Estimated: `0`
288                        // Minimum execution time: 4_000_000 picoseconds.
289                        Weight::from_parts(5_000_000,
290                        0)
291                        .saturating_add(T::DbWeight::get().writes(1_u64))
292                        }
293                        /// Storage: `Authors::RecentElectedOn` (r:1 w:0)
294                        /// Proof: `Authors::RecentElectedOn` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
295                        /// Storage: `Authors::Elected` (r:11 w:0)
296                        /// Proof: `Authors::Elected` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
297                        fn inspect_elects() -> Weight {
298                        // Proof Size summary in bytes:
299                        // Measured: `879`
300                        // Estimated: `28963`
301                        // Minimum execution time: 46_000_000 picoseconds.
302                        Weight::from_parts(48_000_000,
303                        28963)
304                        .saturating_add(T::DbWeight::get().reads(12_u64))
305                        }
306                        /// Storage: `Timestamp::Now` (r:1 w:0)
307                        /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
308                        /// Storage: `System::BlockHash` (r:1 w:0)
309                        /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
310                        /// Storage: `ChainManager::FinalityAfter` (r:1 w:0)
311                        /// Proof: `ChainManager::FinalityAfter` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
312                        /// Storage: `ChainManager::FinalityTicks` (r:1 w:0)
313                        /// Proof: `ChainManager::FinalityTicks` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
314                        fn prepare_validation_payload() -> Weight {
315                        // Proof Size summary in bytes:
316                        // Measured: `817`
317                        // Estimated: `3509`
318                        // Minimum execution time: 1_932_000_000 picoseconds.
319                        Weight::from_parts(11_371_000_000,
320                        3509)
321                        .saturating_add(T::DbWeight::get().reads(4_u64))
322                        }
323                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
324                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
325                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:0)
326                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
327                        /// Storage: `ChainManager::AuthorAffidavits` (r:1 w:0)
328                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
329                        fn inspect_affidavit() -> Weight {
330                        // Proof Size summary in bytes:
331                        // Measured: `519`
332                        // Estimated: `44039`
333                        // Minimum execution time: 21_000_000 picoseconds.
334                        Weight::from_parts(23_000_000,
335                        44039)
336                        .saturating_add(T::DbWeight::get().reads(3_u64))
337                        }
338                        /// Storage: `Authors::AuthorsMap` (r:100 w:100)
339                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
340                        /// Storage: `Authors::IncreaseProbationBy` (r:1 w:0)
341                        /// Proof: `Authors::IncreaseProbationBy` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
342                        /// Storage: `Authors::PenaltiesBuffer` (r:1 w:0)
343                        /// Proof: `Authors::PenaltiesBuffer` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
344                        /// Storage: `Authors::AuthorPenalties` (r:100 w:100)
345                        /// Proof: `Authors::AuthorPenalties` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
346                        /// Storage: `Authors::PenaltiesUntil` (r:1 w:1)
347                        /// Proof: `Authors::PenaltiesUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
348                        /// The range of component `n` is `[1, 100]`.
349                        fn on_offence(n: u32, ) -> Weight {
350                        // Proof Size summary in bytes:
351                        // Measured: `482 + n * (102 ±0)`
352                        // Estimated: `1489 + n * (2602 ±0)`
353                        // Minimum execution time: 33_000_000 picoseconds.
354                        Weight::from_parts(10_220_822,
355                        1489)
356                        // Standard Error: 70_461
357                        .saturating_add(Weight::from_parts(21_872_314,
358                        0).saturating_mul(n.into()))
359                        .saturating_add(T::DbWeight::get().reads(3_u64))
360                        .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(n.into())))
361                        .saturating_add(T::DbWeight::get().writes(1_u64))
362                        .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
363                        .saturating_add(Weight::from_parts(0, 2602).saturating_mul(n.into()))
364                        }
365                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
366                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
367                        /// Storage: `ChainManager::BlockPointsStore` (r:1 w:1)
368                        /// Proof: `ChainManager::BlockPointsStore` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
369                        fn on_initialize_with_author() -> Weight {
370                        // Proof Size summary in bytes:
371                        // Measured: `261`
372                        // Estimated: `3541`
373                        // Minimum execution time: 13_000_000 picoseconds.
374                        Weight::from_parts(15_000_000,
375                        3541)
376                        .saturating_add(T::DbWeight::get().reads(2_u64))
377                        .saturating_add(T::DbWeight::get().writes(1_u64))
378                        }
379                        }
380
381                        // For backwards compatibility and tests.
382                        impl WeightInfo for () {
383                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
384                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
385                        /// Storage: `Commitment::CommitMap` (r:1 w:0)
386                        /// Proof: `Commitment::CommitMap` (`max_values`: None, `max_size`: Some(1600), added: 4075, mode: `MaxEncodedLen`)
387                        /// Storage: `Commitment::DigestMap` (r:1 w:0)
388                        /// Proof: `Commitment::DigestMap` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
389                        /// Storage: `Authors::MinCollateral` (r:1 w:0)
390                        /// Proof: `Authors::MinCollateral` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
391                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
392                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
393                        /// Storage: `ChainManager::AffidavitKeys` (r:0 w:1)
394                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
395                        fn validate() -> Weight {
396                        // Proof Size summary in bytes:
397                        // Measured: `1075`
398                        // Estimated: `5065`
399                        // Minimum execution time: 45_000_000 picoseconds.
400                        Weight::from_parts(48_000_000,
401                        5065)
402                        .saturating_add(RocksDbWeight::get().reads(5_u64))
403                        .saturating_add(RocksDbWeight::get().writes(1_u64))
404                        }
405                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
406                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
407                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
408                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
409                        /// Storage: `Session::Validators` (r:1 w:0)
410                        /// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
411                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
412                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
413                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
414                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
415                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
416                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
417                        /// Storage: `ChainManager::AffidavitKeys` (r:2 w:1)
418                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
419                        /// Storage: `ChainManager::AuthorAffidavits` (r:1 w:0)
420                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
421                        fn chill() -> Weight {
422                        // Proof Size summary in bytes:
423                        // Measured: `844`
424                        // Estimated: `44039`
425                        // Minimum execution time: 42_000_000 picoseconds.
426                        Weight::from_parts(45_000_000,
427                        44039)
428                        .saturating_add(RocksDbWeight::get().reads(9_u64))
429                        .saturating_add(RocksDbWeight::get().writes(1_u64))
430                        }
431                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
432                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
433                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:1)
434                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
435                        /// Storage: `ChainManager::AllowAffidavits` (r:1 w:0)
436                        /// Proof: `ChainManager::AllowAffidavits` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
437                        /// Storage: `Authors::AuthorsMap` (r:1 w:0)
438                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
439                        /// Storage: `Commitment::CommitMap` (r:1 w:0)
440                        /// Proof: `Commitment::CommitMap` (`max_values`: None, `max_size`: Some(1600), added: 4075, mode: `MaxEncodedLen`)
441                        /// Storage: `Commitment::DigestMap` (r:1 w:0)
442                        /// Proof: `Commitment::DigestMap` (`max_values`: None, `max_size`: Some(229), added: 2704, mode: `MaxEncodedLen`)
443                        /// Storage: `Authors::MinCollateral` (r:1 w:0)
444                        /// Proof: `Authors::MinCollateral` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
445                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
446                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
447                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
448                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
449                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
450                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
451                        /// Storage: `Authors::AuthorFunders` (r:1 w:0)
452                        /// Proof: `Authors::AuthorFunders` (`max_values`: None, `max_size`: Some(161), added: 2636, mode: `MaxEncodedLen`)
453                        /// Storage: `ChainManager::AuthorAffidavits` (r:0 w:1)
454                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
455                        fn declare() -> Weight {
456                        // Proof Size summary in bytes:
457                        // Measured: `1281`
458                        // Estimated: `5065`
459                        // Minimum execution time: 78_000_000 picoseconds.
460                        Weight::from_parts(82_000_000,
461                        5065)
462                        .saturating_add(RocksDbWeight::get().reads(11_u64))
463                        .saturating_add(RocksDbWeight::get().writes(2_u64))
464                        }
465                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
466                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
467                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:0)
468                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
469                        /// Storage: `ChainManager::SessionStartAt` (r:1 w:0)
470                        /// Proof: `ChainManager::SessionStartAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
471                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
472                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
473                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
474                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
475                        /// Storage: `ChainManager::ElectionBeginsAt` (r:1 w:0)
476                        /// Proof: `ChainManager::ElectionBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
477                        /// Storage: `ChainManager::AuthorAffidavits` (r:12 w:0)
478                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
479                        /// Storage: `Authors::MinElected` (r:1 w:0)
480                        /// Proof: `Authors::MinElected` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
481                        /// Storage: `Authors::ForceMaxElected` (r:1 w:0)
482                        /// Proof: `Authors::ForceMaxElected` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
483                        /// Storage: `Authors::Elected` (r:12 w:11)
484                        /// Proof: `Authors::Elected` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
485                        /// Storage: `ChainManager::ElectsPreparedBy` (r:0 w:1)
486                        /// Proof: `ChainManager::ElectsPreparedBy` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
487                        /// Storage: `Authors::RecentElectedOn` (r:0 w:1)
488                        /// Proof: `Authors::RecentElectedOn` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
489                        fn elect() -> Weight {
490                        // Proof Size summary in bytes:
491                        // Measured: `1718`
492                        // Estimated: `517578`
493                        // Minimum execution time: 149_000_000 picoseconds.
494                        Weight::from_parts(162_000_000,
495                        517578)
496                        .saturating_add(RocksDbWeight::get().reads(32_u64))
497                        .saturating_add(RocksDbWeight::get().writes(13_u64))
498                        }
499                        /// Storage: `ChainManager::AllowAffidavits` (r:0 w:1)
500                        /// Proof: `ChainManager::AllowAffidavits` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
501                        fn force_allow_affidavits() -> Weight {
502                        // Proof Size summary in bytes:
503                        // Measured: `0`
504                        // Estimated: `0`
505                        // Minimum execution time: 4_000_000 picoseconds.
506                        Weight::from_parts(5_000_000,
507                        0)
508                        .saturating_add(RocksDbWeight::get().writes(1_u64))
509                        }
510                        /// Storage: `ChainManager::AffidavitEndsAt` (r:1 w:0)
511                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
512                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:0 w:1)
513                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
514                        fn force_affidavit_begins_at() -> Weight {
515                        // Proof Size summary in bytes:
516                        // Measured: `277`
517                        // Estimated: `1489`
518                        // Minimum execution time: 11_000_000 picoseconds.
519                        Weight::from_parts(12_000_000,
520                        1489)
521                        .saturating_add(RocksDbWeight::get().reads(1_u64))
522                        .saturating_add(RocksDbWeight::get().writes(1_u64))
523                        }
524                        /// Storage: `ChainManager::AffidavitBeginsAt` (r:1 w:0)
525                        /// Proof: `ChainManager::AffidavitBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
526                        /// Storage: `ChainManager::AffidavitEndsAt` (r:0 w:1)
527                        /// Proof: `ChainManager::AffidavitEndsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
528                        fn force_affidavit_ends_at() -> Weight {
529                        // Proof Size summary in bytes:
530                        // Measured: `261`
531                        // Estimated: `1489`
532                        // Minimum execution time: 9_000_000 picoseconds.
533                        Weight::from_parts(10_000_000,
534                        1489)
535                        .saturating_add(RocksDbWeight::get().reads(1_u64))
536                        .saturating_add(RocksDbWeight::get().writes(1_u64))
537                        }
538                        /// Storage: `ChainManager::ElectionBeginsAt` (r:0 w:1)
539                        /// Proof: `ChainManager::ElectionBeginsAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
540                        fn force_election_begins_at() -> Weight {
541                        // Proof Size summary in bytes:
542                        // Measured: `0`
543                        // Estimated: `0`
544                        // Minimum execution time: 4_000_000 picoseconds.
545                        Weight::from_parts(5_000_000,
546                        0)
547                        .saturating_add(RocksDbWeight::get().writes(1_u64))
548                        }
549                        /// Storage: `ChainManager::ElectionRunnerPointsUpgrade` (r:0 w:1)
550                        /// Proof: `ChainManager::ElectionRunnerPointsUpgrade` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`)
551                        fn force_election_runner_points_upgrade() -> Weight {
552                        // Proof Size summary in bytes:
553                        // Measured: `0`
554                        // Estimated: `0`
555                        // Minimum execution time: 4_000_000 picoseconds.
556                        Weight::from_parts(5_000_000,
557                        0)
558                        .saturating_add(RocksDbWeight::get().writes(1_u64))
559                        }
560                        /// Storage: `ChainManager::ValidateTxPriority` (r:0 w:1)
561                        /// Proof: `ChainManager::ValidateTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
562                        fn force_validate_tx_priority() -> Weight {
563                        // Proof Size summary in bytes:
564                        // Measured: `0`
565                        // Estimated: `0`
566                        // Minimum execution time: 4_000_000 picoseconds.
567                        Weight::from_parts(5_000_000,
568                        0)
569                        .saturating_add(RocksDbWeight::get().writes(1_u64))
570                        }
571                        /// Storage: `ChainManager::ElectionTxPriority` (r:0 w:1)
572                        /// Proof: `ChainManager::ElectionTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
573                        fn force_election_tx_priority() -> Weight {
574                        // Proof Size summary in bytes:
575                        // Measured: `0`
576                        // Estimated: `0`
577                        // Minimum execution time: 4_000_000 picoseconds.
578                        Weight::from_parts(5_000_000,
579                        0)
580                        .saturating_add(RocksDbWeight::get().writes(1_u64))
581                        }
582                        /// Storage: `ChainManager::AffidavitTxPriority` (r:0 w:1)
583                        /// Proof: `ChainManager::AffidavitTxPriority` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
584                        fn force_affidavit_tx_priority() -> Weight {
585                        // Proof Size summary in bytes:
586                        // Measured: `0`
587                        // Estimated: `0`
588                        // Minimum execution time: 4_000_000 picoseconds.
589                        Weight::from_parts(5_000_000,
590                        0)
591                        .saturating_add(RocksDbWeight::get().writes(1_u64))
592                        }
593                        /// Storage: `ChainManager::FinalityAfter` (r:0 w:1)
594                        /// Proof: `ChainManager::FinalityAfter` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
595                        fn force_finality_after() -> Weight {
596                        // Proof Size summary in bytes:
597                        // Measured: `0`
598                        // Estimated: `0`
599                        // Minimum execution time: 4_000_000 picoseconds.
600                        Weight::from_parts(5_000_000,
601                        0)
602                        .saturating_add(RocksDbWeight::get().writes(1_u64))
603                        }
604                        /// Storage: `ChainManager::FinalityTicks` (r:0 w:1)
605                        /// Proof: `ChainManager::FinalityTicks` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
606                        fn force_finality_ticks() -> Weight {
607                        // Proof Size summary in bytes:
608                        // Measured: `0`
609                        // Estimated: `0`
610                        // Minimum execution time: 4_000_000 picoseconds.
611                        Weight::from_parts(5_000_000,
612                        0)
613                        .saturating_add(RocksDbWeight::get().writes(1_u64))
614                        }
615                        /// Storage: `Authors::RecentElectedOn` (r:1 w:0)
616                        /// Proof: `Authors::RecentElectedOn` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
617                        /// Storage: `Authors::Elected` (r:11 w:0)
618                        /// Proof: `Authors::Elected` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
619                        fn inspect_elects() -> Weight {
620                        // Proof Size summary in bytes:
621                        // Measured: `879`
622                        // Estimated: `28963`
623                        // Minimum execution time: 46_000_000 picoseconds.
624                        Weight::from_parts(48_000_000,
625                        28963)
626                        .saturating_add(RocksDbWeight::get().reads(12_u64))
627                        }
628                        /// Storage: `Timestamp::Now` (r:1 w:0)
629                        /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
630                        /// Storage: `System::BlockHash` (r:1 w:0)
631                        /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
632                        /// Storage: `ChainManager::FinalityAfter` (r:1 w:0)
633                        /// Proof: `ChainManager::FinalityAfter` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
634                        /// Storage: `ChainManager::FinalityTicks` (r:1 w:0)
635                        /// Proof: `ChainManager::FinalityTicks` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
636                        fn prepare_validation_payload() -> Weight {
637                        // Proof Size summary in bytes:
638                        // Measured: `817`
639                        // Estimated: `3509`
640                        // Minimum execution time: 1_932_000_000 picoseconds.
641                        Weight::from_parts(11_371_000_000,
642                        3509)
643                        .saturating_add(RocksDbWeight::get().reads(4_u64))
644                        }
645                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
646                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
647                        /// Storage: `ChainManager::AffidavitKeys` (r:1 w:0)
648                        /// Proof: `ChainManager::AffidavitKeys` (`max_values`: None, `max_size`: Some(100), added: 2575, mode: `MaxEncodedLen`)
649                        /// Storage: `ChainManager::AuthorAffidavits` (r:1 w:0)
650                        /// Proof: `ChainManager::AuthorAffidavits` (`max_values`: None, `max_size`: Some(40574), added: 43049, mode: `MaxEncodedLen`)
651                        fn inspect_affidavit() -> Weight {
652                        // Proof Size summary in bytes:
653                        // Measured: `519`
654                        // Estimated: `44039`
655                        // Minimum execution time: 21_000_000 picoseconds.
656                        Weight::from_parts(23_000_000,
657                        44039)
658                        .saturating_add(RocksDbWeight::get().reads(3_u64))
659                        }
660                        /// Storage: `Authors::AuthorsMap` (r:100 w:100)
661                        /// Proof: `Authors::AuthorsMap` (`max_values`: None, `max_size`: Some(127), added: 2602, mode: `MaxEncodedLen`)
662                        /// Storage: `Authors::IncreaseProbationBy` (r:1 w:0)
663                        /// Proof: `Authors::IncreaseProbationBy` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
664                        /// Storage: `Authors::PenaltiesBuffer` (r:1 w:0)
665                        /// Proof: `Authors::PenaltiesBuffer` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
666                        /// Storage: `Authors::AuthorPenalties` (r:100 w:100)
667                        /// Proof: `Authors::AuthorPenalties` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
668                        /// Storage: `Authors::PenaltiesUntil` (r:1 w:1)
669                        /// Proof: `Authors::PenaltiesUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
670                        /// The range of component `n` is `[1, 100]`.
671                        fn on_offence(n: u32, ) -> Weight {
672                        // Proof Size summary in bytes:
673                        // Measured: `482 + n * (102 ±0)`
674                        // Estimated: `1489 + n * (2602 ±0)`
675                        // Minimum execution time: 33_000_000 picoseconds.
676                        Weight::from_parts(10_220_822,
677                        1489)
678                        // Standard Error: 70_461
679                        .saturating_add(Weight::from_parts(21_872_314,
680                        0).saturating_mul(n.into()))
681                        .saturating_add(RocksDbWeight::get().reads(3_u64))
682                        .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(n.into())))
683                        .saturating_add(RocksDbWeight::get().writes(1_u64))
684                        .saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into())))
685                        .saturating_add(Weight::from_parts(0, 2602).saturating_mul(n.into()))
686                        }
687                        /// Storage: `ChainManager::CurrentSession` (r:1 w:0)
688                        /// Proof: `ChainManager::CurrentSession` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
689                        /// Storage: `ChainManager::BlockPointsStore` (r:1 w:1)
690                        /// Proof: `ChainManager::BlockPointsStore` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
691                        fn on_initialize_with_author() -> Weight {
692                        // Proof Size summary in bytes:
693                        // Measured: `261`
694                        // Estimated: `3541`
695                        // Minimum execution time: 13_000_000 picoseconds.
696                        Weight::from_parts(15_000_000,
697                        3541)
698                        .saturating_add(RocksDbWeight::get().reads(2_u64))
699                        .saturating_add(RocksDbWeight::get().writes(1_u64))
700                        }
701                        }