Skip to content

Commit

Permalink
Revert Court handle_inflation() weight
Browse files Browse the repository at this point in the history
  • Loading branch information
sea212 committed Jan 16, 2024
1 parent a27a05f commit a61357e
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions zrml/court/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,16 @@ impl<T: frame_system::Config> WeightInfoZeitgeist for WeightInfo<T> {
/// The range of component `j` is `[1, 1000]`.
fn handle_inflation(j: u32) -> Weight {
// Proof Size summary in bytes:
// Measured: `147`
// Estimated: `499`
// Minimum execution time: 5_390 nanoseconds.
Weight::from_parts(7_473_674, 499)
// Standard Error: 121
.saturating_add(Weight::from_parts(3_263, 0).saturating_mul(j.into()))
.saturating_add(T::DbWeight::get().reads(1))
// Measured: `0 + j * (243 ±0)`
// Estimated: `72996 + j * (2607 ±0)`
// Minimum execution time: 33_280 nanoseconds.
Weight::from_parts(34_480_000, 72996)
// Standard Error: 9_174
.saturating_add(Weight::from_parts(19_968_654, 0).saturating_mul(j.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(j.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(j.into())))
.saturating_add(Weight::from_parts(0, 2607).saturating_mul(j.into()))
}
/// Storage: Court CourtPool (r:1 w:1)
/// Proof: Court CourtPool (max_values: Some(1), max_size: Some(72002), added: 72497, mode: MaxEncodedLen)
Expand Down

0 comments on commit a61357e

Please sign in to comment.