Compare commits

..

No commits in common. "2bb66c4e197dd3c33e4813c8c0cef21c11f97d7c" and "28e8389bfc25327e5d79c4a8ab82cfd3d987c932" have entirely different histories.

5 changed files with 198 additions and 203 deletions

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-networks" name = "ghost-networks"
version = "0.1.13" version = "0.1.12"
license.workspace = true license.workspace = true
authors.workspace = true authors.workspace = true
edition.workspace = true edition.workspace = true

View File

@ -292,9 +292,7 @@ pub mod module {
network.default_endpoints network.default_endpoints
.iter() .iter()
.map(|endpoint| endpoint.len()) .map(|endpoint| endpoint.len())
.max() .sum::<usize>() as u32,
.unwrap_or_default() as u32,
network.default_endpoints.len() as u32,
))] ))]
pub fn register_network( pub fn register_network(
origin: OriginFor<T>, origin: OriginFor<T>,

View File

@ -49,7 +49,7 @@ use sp_std::marker::PhantomData;
/// Weight functions needed for ghost_networks /// Weight functions needed for ghost_networks
pub trait WeightInfo { pub trait WeightInfo {
fn register_network(i: u32, j: u32, k: u32, ) -> Weight; fn register_network(n: u32, m: u32, ) -> Weight;
fn update_network_name(n: u32, ) -> Weight; fn update_network_name(n: u32, ) -> Weight;
fn update_network_endpoint(n: u32, ) -> Weight; fn update_network_endpoint(n: u32, ) -> Weight;
fn update_network_finality_delay() -> Weight; fn update_network_finality_delay() -> Weight;
@ -70,16 +70,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 20]`. /// The range of component `i` is `[1, 20]`.
/// The range of component `j` is `[1, 150]`. /// The range of component `j` is `[1, 150]`.
/// The range of component `k` is `[1, 20]`. fn register_network(_i: u32, j: u32, ) -> Weight {
fn register_network(_i: u32, _j: u32, k: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `109` // Measured: `109`
// Estimated: `3574` // Estimated: `3574`
// Minimum execution time: 46_023_000 picoseconds. // Minimum execution time: 43_753_000 picoseconds.
Weight::from_parts(97_871_287, 0) Weight::from_parts(45_805_520, 0)
.saturating_add(Weight::from_parts(0, 3574)) .saturating_add(Weight::from_parts(0, 3574))
// Standard Error: 94_524 // Standard Error: 412
.saturating_add(Weight::from_parts(940_486, 0).saturating_mul(k.into())) .saturating_add(Weight::from_parts(1_586, 0).saturating_mul(j.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -88,13 +87,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[1, 20]`. /// The range of component `n` is `[1, 20]`.
fn update_network_name(n: u32, ) -> Weight { fn update_network_name(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_906_000 picoseconds. // Minimum execution time: 49_412_000 picoseconds.
Weight::from_parts(55_537_587, 0) Weight::from_parts(50_617_210, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 87_704 // Standard Error: 3_074
.saturating_add(Weight::from_parts(92_366, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(6_017, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -103,13 +102,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `n` is `[1, 150]`. /// The range of component `n` is `[1, 150]`.
fn update_network_endpoint(n: u32, ) -> Weight { fn update_network_endpoint(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_556_000 picoseconds. // Minimum execution time: 49_485_000 picoseconds.
Weight::from_parts(57_726_674, 0) Weight::from_parts(50_716_057, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 12_261 // Standard Error: 453
.saturating_add(Weight::from_parts(274, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(4_916, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -117,11 +116,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_finality_delay() -> Weight { fn update_network_finality_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_406_000 picoseconds. // Minimum execution time: 48_061_000 picoseconds.
Weight::from_parts(51_256_000, 0) Weight::from_parts(49_072_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -129,11 +128,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_rate_limit_delay() -> Weight { fn update_network_rate_limit_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_572_000 picoseconds. // Minimum execution time: 49_066_000 picoseconds.
Weight::from_parts(52_584_000, 0) Weight::from_parts(52_137_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -141,11 +140,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_block_distance() -> Weight { fn update_network_block_distance() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_880_000 picoseconds. // Minimum execution time: 48_085_000 picoseconds.
Weight::from_parts(50_596_000, 0) Weight::from_parts(48_838_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -153,11 +152,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_type() -> Weight { fn update_network_type() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_282_000 picoseconds. // Minimum execution time: 47_872_000 picoseconds.
Weight::from_parts(49_137_000, 0) Weight::from_parts(48_972_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -165,11 +164,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_gatekeeper() -> Weight { fn update_network_gatekeeper() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_853_000 picoseconds. // Minimum execution time: 50_029_000 picoseconds.
Weight::from_parts(51_982_000, 0) Weight::from_parts(50_768_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -177,11 +176,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_topic_name() -> Weight { fn update_network_topic_name() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_343_000 picoseconds. // Minimum execution time: 50_151_000 picoseconds.
Weight::from_parts(52_380_000, 0) Weight::from_parts(51_573_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -189,11 +188,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_incoming_network_fee() -> Weight { fn update_incoming_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_393_000 picoseconds. // Minimum execution time: 48_017_000 picoseconds.
Weight::from_parts(80_966_000, 0) Weight::from_parts(49_513_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -201,11 +200,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_outgoing_network_fee() -> Weight { fn update_outgoing_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_579_000 picoseconds. // Minimum execution time: 48_714_000 picoseconds.
Weight::from_parts(51_126_000, 0) Weight::from_parts(49_777_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -213,11 +212,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn remove_network() -> Weight { fn remove_network() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 44_634_000 picoseconds. // Minimum execution time: 44_583_000 picoseconds.
Weight::from_parts(45_815_000, 0) Weight::from_parts(45_681_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -228,16 +227,15 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 20]`. /// The range of component `i` is `[1, 20]`.
/// The range of component `j` is `[1, 150]`. /// The range of component `j` is `[1, 150]`.
/// The range of component `k` is `[1, 20]`. fn register_network(_i: u32, j: u32, ) -> Weight {
fn register_network(_i: u32, _j: u32, k: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `109` // Measured: `109`
// Estimated: `3574` // Estimated: `3574`
// Minimum execution time: 46_023_000 picoseconds. // Minimum execution time: 43_753_000 picoseconds.
Weight::from_parts(97_871_287, 0) Weight::from_parts(45_805_520, 0)
.saturating_add(Weight::from_parts(0, 3574)) .saturating_add(Weight::from_parts(0, 3574))
// Standard Error: 94_524 // Standard Error: 412
.saturating_add(Weight::from_parts(940_486, 0).saturating_mul(k.into())) .saturating_add(Weight::from_parts(1_586, 0).saturating_mul(j.into()))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -246,13 +244,13 @@ impl WeightInfo for () {
/// The range of component `n` is `[1, 20]`. /// The range of component `n` is `[1, 20]`.
fn update_network_name(n: u32, ) -> Weight { fn update_network_name(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_906_000 picoseconds. // Minimum execution time: 49_412_000 picoseconds.
Weight::from_parts(55_537_587, 0) Weight::from_parts(50_617_210, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 87_704 // Standard Error: 3_074
.saturating_add(Weight::from_parts(92_366, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(6_017, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -261,13 +259,13 @@ impl WeightInfo for () {
/// The range of component `n` is `[1, 150]`. /// The range of component `n` is `[1, 150]`.
fn update_network_endpoint(n: u32, ) -> Weight { fn update_network_endpoint(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_556_000 picoseconds. // Minimum execution time: 49_485_000 picoseconds.
Weight::from_parts(57_726_674, 0) Weight::from_parts(50_716_057, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 12_261 // Standard Error: 453
.saturating_add(Weight::from_parts(274, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(4_916, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -275,11 +273,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_finality_delay() -> Weight { fn update_network_finality_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_406_000 picoseconds. // Minimum execution time: 48_061_000 picoseconds.
Weight::from_parts(51_256_000, 0) Weight::from_parts(49_072_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -287,11 +285,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_rate_limit_delay() -> Weight { fn update_network_rate_limit_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_572_000 picoseconds. // Minimum execution time: 49_066_000 picoseconds.
Weight::from_parts(52_584_000, 0) Weight::from_parts(52_137_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -299,11 +297,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_block_distance() -> Weight { fn update_network_block_distance() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_880_000 picoseconds. // Minimum execution time: 48_085_000 picoseconds.
Weight::from_parts(50_596_000, 0) Weight::from_parts(48_838_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -311,11 +309,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_type() -> Weight { fn update_network_type() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_282_000 picoseconds. // Minimum execution time: 47_872_000 picoseconds.
Weight::from_parts(49_137_000, 0) Weight::from_parts(48_972_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -323,11 +321,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_gatekeeper() -> Weight { fn update_network_gatekeeper() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_853_000 picoseconds. // Minimum execution time: 50_029_000 picoseconds.
Weight::from_parts(51_982_000, 0) Weight::from_parts(50_768_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -335,11 +333,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_topic_name() -> Weight { fn update_network_topic_name() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_343_000 picoseconds. // Minimum execution time: 50_151_000 picoseconds.
Weight::from_parts(52_380_000, 0) Weight::from_parts(51_573_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -347,11 +345,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_incoming_network_fee() -> Weight { fn update_incoming_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_393_000 picoseconds. // Minimum execution time: 48_017_000 picoseconds.
Weight::from_parts(80_966_000, 0) Weight::from_parts(49_513_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -359,11 +357,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_outgoing_network_fee() -> Weight { fn update_outgoing_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_579_000 picoseconds. // Minimum execution time: 48_714_000 picoseconds.
Weight::from_parts(51_126_000, 0) Weight::from_parts(49_777_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }
@ -371,11 +369,11 @@ impl WeightInfo for () {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn remove_network() -> Weight { fn remove_network() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 44_634_000 picoseconds. // Minimum execution time: 44_583_000 picoseconds.
Weight::from_parts(45_815_000, 0) Weight::from_parts(45_681_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1)) .saturating_add(RocksDbWeight::get().writes(1))
} }

View File

@ -1,6 +1,6 @@
[package] [package]
name = "casper-runtime" name = "casper-runtime"
version = "3.5.28" version = "3.5.27"
build = "build.rs" build = "build.rs"
description = "Runtime of the Casper Network" description = "Runtime of the Casper Network"
edition.workspace = true edition.workspace = true

View File

@ -16,7 +16,7 @@
//! Autogenerated weights for `ghost_networks` //! Autogenerated weights for `ghost_networks`
//! //!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-07-29, 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` //! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
@ -28,7 +28,7 @@
// --chain=casper-dev // --chain=casper-dev
// --steps=50 // --steps=50
// --repeat=20 // --repeat=20
// --pallet=ghost-networks // --pallet=ghost_networks
// --extrinsic=* // --extrinsic=*
// --wasm-execution=compiled // --wasm-execution=compiled
// --heap-pages=4096 // --heap-pages=4096
@ -50,16 +50,15 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `i` is `[1, 20]`. /// The range of component `i` is `[1, 20]`.
/// The range of component `j` is `[1, 150]`. /// The range of component `j` is `[1, 150]`.
/// The range of component `k` is `[1, 20]`. fn register_network(_i: u32, j: u32, ) -> Weight {
fn register_network(_i: u32, _j: u32, k: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `109` // Measured: `109`
// Estimated: `3574` // Estimated: `3574`
// Minimum execution time: 46_023_000 picoseconds. // Minimum execution time: 43_753_000 picoseconds.
Weight::from_parts(97_871_287, 0) Weight::from_parts(45_805_520, 0)
.saturating_add(Weight::from_parts(0, 3574)) .saturating_add(Weight::from_parts(0, 3574))
// Standard Error: 94_524 // Standard Error: 412
.saturating_add(Weight::from_parts(940_486, 0).saturating_mul(k.into())) .saturating_add(Weight::from_parts(1_586, 0).saturating_mul(j.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -68,13 +67,13 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[1, 20]`. /// The range of component `n` is `[1, 20]`.
fn update_network_name(n: u32, ) -> Weight { fn update_network_name(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_906_000 picoseconds. // Minimum execution time: 49_412_000 picoseconds.
Weight::from_parts(55_537_587, 0) Weight::from_parts(50_617_210, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 87_704 // Standard Error: 3_074
.saturating_add(Weight::from_parts(92_366, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(6_017, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -83,13 +82,13 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[1, 150]`. /// The range of component `n` is `[1, 150]`.
fn update_network_endpoint(n: u32, ) -> Weight { fn update_network_endpoint(n: u32, ) -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_556_000 picoseconds. // Minimum execution time: 49_485_000 picoseconds.
Weight::from_parts(57_726_674, 0) Weight::from_parts(50_716_057, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
// Standard Error: 12_261 // Standard Error: 453
.saturating_add(Weight::from_parts(274, 0).saturating_mul(n.into())) .saturating_add(Weight::from_parts(4_916, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -97,11 +96,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_finality_delay() -> Weight { fn update_network_finality_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_406_000 picoseconds. // Minimum execution time: 48_061_000 picoseconds.
Weight::from_parts(51_256_000, 0) Weight::from_parts(49_072_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -109,11 +108,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_rate_limit_delay() -> Weight { fn update_network_rate_limit_delay() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_572_000 picoseconds. // Minimum execution time: 49_066_000 picoseconds.
Weight::from_parts(52_584_000, 0) Weight::from_parts(52_137_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -121,11 +120,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_block_distance() -> Weight { fn update_network_block_distance() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_880_000 picoseconds. // Minimum execution time: 48_085_000 picoseconds.
Weight::from_parts(50_596_000, 0) Weight::from_parts(48_838_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -133,11 +132,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_type() -> Weight { fn update_network_type() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 48_282_000 picoseconds. // Minimum execution time: 47_872_000 picoseconds.
Weight::from_parts(49_137_000, 0) Weight::from_parts(48_972_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -145,11 +144,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_gatekeeper() -> Weight { fn update_network_gatekeeper() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_853_000 picoseconds. // Minimum execution time: 50_029_000 picoseconds.
Weight::from_parts(51_982_000, 0) Weight::from_parts(50_768_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -157,11 +156,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_network_topic_name() -> Weight { fn update_network_topic_name() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 50_343_000 picoseconds. // Minimum execution time: 50_151_000 picoseconds.
Weight::from_parts(52_380_000, 0) Weight::from_parts(51_573_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -169,11 +168,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_incoming_network_fee() -> Weight { fn update_incoming_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_393_000 picoseconds. // Minimum execution time: 48_017_000 picoseconds.
Weight::from_parts(80_966_000, 0) Weight::from_parts(49_513_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -181,11 +180,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn update_outgoing_network_fee() -> Weight { fn update_outgoing_network_fee() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 49_579_000 picoseconds. // Minimum execution time: 48_714_000 picoseconds.
Weight::from_parts(51_126_000, 0) Weight::from_parts(49_777_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }
@ -193,11 +192,11 @@ impl<T: frame_system::Config> ghost_networks::WeightInfo for WeightInfo<T> {
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn remove_network() -> Weight { fn remove_network() -> Weight {
// Proof Size summary in bytes: // Proof Size summary in bytes:
// Measured: `302` // Measured: `301`
// Estimated: `3767` // Estimated: `3766`
// Minimum execution time: 44_634_000 picoseconds. // Minimum execution time: 44_583_000 picoseconds.
Weight::from_parts(45_815_000, 0) Weight::from_parts(45_681_000, 0)
.saturating_add(Weight::from_parts(0, 3767)) .saturating_add(Weight::from_parts(0, 3766))
.saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1)) .saturating_add(T::DbWeight::get().writes(1))
} }