From 43f72ec84249f7807e336d616fec9e9eef90ad3f Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Thu, 19 Jun 2025 22:35:51 +0300 Subject: [PATCH] update weights and add rate_limit_delay for slow claps Signed-off-by: Uncle Stretch --- pallets/slow-clap/Cargo.toml | 2 +- pallets/slow-clap/src/tests.rs | 1 + pallets/slow-clap/src/weights.rs | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pallets/slow-clap/Cargo.toml b/pallets/slow-clap/Cargo.toml index def071a..3d3cdb4 100644 --- a/pallets/slow-clap/Cargo.toml +++ b/pallets/slow-clap/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-slow-clap" -version = "0.3.29" +version = "0.3.30" description = "Applause protocol for the EVM bridge" license.workspace = true authors.workspace = true diff --git a/pallets/slow-clap/src/tests.rs b/pallets/slow-clap/src/tests.rs index 163c28c..2254cd4 100644 --- a/pallets/slow-clap/src/tests.rs +++ b/pallets/slow-clap/src/tests.rs @@ -24,6 +24,7 @@ fn prepare_evm_network( chain_name: "Ethereum".into(), default_endpoint: get_rpc_endpoint(), finality_delay: 69, + rate_limit_delay: 69, block_distance: 69, network_type: ghost_networks::NetworkType::Evm, gatekeeper: get_gatekeeper(), diff --git a/pallets/slow-clap/src/weights.rs b/pallets/slow-clap/src/weights.rs index dc7b5ff..06180f8 100644 --- a/pallets/slow-clap/src/weights.rs +++ b/pallets/slow-clap/src/weights.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_slow_clap` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-06-17, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-06-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 @@ -78,8 +78,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `3820` - // Minimum execution time: 211_154_000 picoseconds. - Weight::from_parts(215_420_000, 0) + // Minimum execution time: 213_817_000 picoseconds. + Weight::from_parts(216_977_000, 0) .saturating_add(Weight::from_parts(0, 3820)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) @@ -106,8 +106,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `655` // Estimated: `4120` - // Minimum execution time: 208_453_000 picoseconds. - Weight::from_parts(212_038_000, 0) + // Minimum execution time: 210_676_000 picoseconds. + Weight::from_parts(212_905_000, 0) .saturating_add(Weight::from_parts(0, 4120)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(5)) @@ -139,8 +139,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `355` // Estimated: `3820` - // Minimum execution time: 211_154_000 picoseconds. - Weight::from_parts(215_420_000, 0) + // Minimum execution time: 213_817_000 picoseconds. + Weight::from_parts(216_977_000, 0) .saturating_add(Weight::from_parts(0, 3820)) .saturating_add(RocksDbWeight::get().reads(10)) .saturating_add(RocksDbWeight::get().writes(7)) @@ -167,8 +167,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `655` // Estimated: `4120` - // Minimum execution time: 208_453_000 picoseconds. - Weight::from_parts(212_038_000, 0) + // Minimum execution time: 210_676_000 picoseconds. + Weight::from_parts(212_905_000, 0) .saturating_add(Weight::from_parts(0, 4120)) .saturating_add(RocksDbWeight::get().reads(9)) .saturating_add(RocksDbWeight::get().writes(5))