fixes for the default weights on slow-clap package

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2025-06-17 20:56:32 +03:00
parent 7107283121
commit b5845924dc
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
2 changed files with 9 additions and 10 deletions

2
Cargo.lock generated
View File

@ -1186,7 +1186,7 @@ dependencies = [
[[package]] [[package]]
name = "casper-runtime" name = "casper-runtime"
version = "3.5.21" version = "3.5.22"
dependencies = [ dependencies = [
"casper-runtime-constants", "casper-runtime-constants",
"frame-benchmarking", "frame-benchmarking",

View File

@ -35,16 +35,15 @@
// --header=./file_header.txt // --header=./file_header.txt
// --output=./runtime/casper/src/weights/ghost_slow_clap.rs // --output=./runtime/casper/src/weights/ghost_slow_clap.rs
use frame_support::{
traits::Get,
weights::{Weight, constants::RocksDbWeight}
};
#![cfg_attr(rustfmt, rustfmt_skip)] #![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)] #![allow(unused_parens)]
#![allow(unused_imports)] #![allow(unused_imports)]
#![allow(missing_docs)] #![allow(missing_docs)]
use frame_support::{
traits::Get,
weights::{Weight, constants::RocksDbWeight}
};
use core::marker::PhantomData; use core::marker::PhantomData;
pub trait WeightInfo { pub trait WeightInfo {
@ -143,8 +142,8 @@ impl WeightInfo for () {
// Minimum execution time: 211_154_000 picoseconds. // Minimum execution time: 211_154_000 picoseconds.
Weight::from_parts(215_420_000, 0) Weight::from_parts(215_420_000, 0)
.saturating_add(Weight::from_parts(0, 3820)) .saturating_add(Weight::from_parts(0, 3820))
.saturating_add(T::RocksDbWeight::get().reads(10)) .saturating_add(RocksDbWeight::get().reads(10))
.saturating_add(T::RocksDbWeight::get().writes(7)) .saturating_add(RocksDbWeight::get().writes(7))
} }
/// Storage: `GhostSlowClaps::ReceivedClaps` (r:1 w:0) /// Storage: `GhostSlowClaps::ReceivedClaps` (r:1 w:0)
/// Proof: `GhostSlowClaps::ReceivedClaps` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostSlowClaps::ReceivedClaps` (`max_values`: None, `max_size`: None, mode: `Measured`)
@ -171,7 +170,7 @@ impl WeightInfo for () {
// Minimum execution time: 208_453_000 picoseconds. // Minimum execution time: 208_453_000 picoseconds.
Weight::from_parts(212_038_000, 0) Weight::from_parts(212_038_000, 0)
.saturating_add(Weight::from_parts(0, 4120)) .saturating_add(Weight::from_parts(0, 4120))
.saturating_add(T::RocksDbWeight::get().reads(9)) .saturating_add(RocksDbWeight::get().reads(9))
.saturating_add(T::RocksDbWeight::get().writes(5)) .saturating_add(RocksDbWeight::get().writes(5))
} }
} }