diff --git a/pallets/admin-utils/src/weights.rs b/pallets/admin-utils/src/weights.rs index 26b4a52fe0..e151dae789 100644 --- a/pallets/admin-utils/src/weights.rs +++ b/pallets/admin-utils/src/weights.rs @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.oS4msGVv9F +// --output=/tmp/tmp.XvrYLS0ksa // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -106,10 +106,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_777_000 picoseconds. - Weight::from_parts(4_442_146, 0) - // Standard Error: 826 - .saturating_add(Weight::from_parts(29_392, 0).saturating_mul(a.into())) + // Minimum execution time: 3_918_000 picoseconds. + Weight::from_parts(4_664_367, 0) + // Standard Error: 744 + .saturating_add(Weight::from_parts(22_586, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Grandpa::PendingChange` (r:1 w:1) @@ -119,10 +119,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `174` // Estimated: `2779` - // Minimum execution time: 7_233_000 picoseconds. - Weight::from_parts(7_972_506, 2779) + // Minimum execution time: 7_174_000 picoseconds. + Weight::from_parts(7_893_458, 2779) // Standard Error: 896 - .saturating_add(Weight::from_parts(15_444, 0).saturating_mul(a.into())) + .saturating_add(Weight::from_parts(18_950, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -132,8 +132,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_100_000 picoseconds. - Weight::from_parts(5_400_000, 0) + // Minimum execution time: 5_319_000 picoseconds. + Weight::from_parts(5_791_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -150,8 +150,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `747` // Estimated: `4212` - // Minimum execution time: 27_641_000 picoseconds. - Weight::from_parts(28_633_000, 4212) + // Minimum execution time: 26_990_000 picoseconds. + Weight::from_parts(28_343_000, 4212) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -171,8 +171,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_653_000 picoseconds. - Weight::from_parts(34_704_000, 4383) + // Minimum execution time: 32_811_000 picoseconds. + Weight::from_parts(33_703_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -192,8 +192,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_482_000 picoseconds. - Weight::from_parts(34_554_000, 4383) + // Minimum execution time: 33_122_000 picoseconds. + Weight::from_parts(33_873_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -205,8 +205,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_799_000 picoseconds. - Weight::from_parts(16_420_000, 4084) + // Minimum execution time: 15_519_000 picoseconds. + Weight::from_parts(16_280_000, 4084) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -226,8 +226,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_192_000 picoseconds. - Weight::from_parts(34_204_000, 4383) + // Minimum execution time: 33_072_000 picoseconds. + Weight::from_parts(34_364_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -247,8 +247,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_432_000 picoseconds. - Weight::from_parts(34_495_000, 4383) + // Minimum execution time: 33_342_000 picoseconds. + Weight::from_parts(34_123_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -268,8 +268,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_633_000 picoseconds. - Weight::from_parts(34_354_000, 4383) + // Minimum execution time: 32_931_000 picoseconds. + Weight::from_parts(34_023_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -291,8 +291,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 35_015_000 picoseconds. - Weight::from_parts(35_896_000, 4383) + // Minimum execution time: 33_853_000 picoseconds. + Weight::from_parts(35_036_000, 4383) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -312,8 +312,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_442_000 picoseconds. - Weight::from_parts(34_434_000, 4383) + // Minimum execution time: 32_941_000 picoseconds. + Weight::from_parts(34_404_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -325,8 +325,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_770_000 picoseconds. - Weight::from_parts(16_320_000, 4084) + // Minimum execution time: 16_039_000 picoseconds. + Weight::from_parts(16_661_000, 4084) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -346,8 +346,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_472_000 picoseconds. - Weight::from_parts(34_103_000, 4383) + // Minimum execution time: 32_641_000 picoseconds. + Weight::from_parts(33_662_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -369,8 +369,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 34_023_000 picoseconds. - Weight::from_parts(35_165_000, 4383) + // Minimum execution time: 34_033_000 picoseconds. + Weight::from_parts(34_995_000, 4383) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -390,8 +390,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 30_646_000 picoseconds. - Weight::from_parts(31_268_000, 4383) + // Minimum execution time: 29_826_000 picoseconds. + Weight::from_parts(30_547_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -403,8 +403,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_719_000 picoseconds. - Weight::from_parts(16_301_000, 4084) + // Minimum execution time: 15_669_000 picoseconds. + Weight::from_parts(16_420_000, 4084) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -428,8 +428,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 36_909_000 picoseconds. - Weight::from_parts(37_890_000, 4383) + // Minimum execution time: 36_428_000 picoseconds. + Weight::from_parts(37_490_000, 4383) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -455,8 +455,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `968` // Estimated: `4433` - // Minimum execution time: 42_299_000 picoseconds. - Weight::from_parts(43_381_000, 4433) + // Minimum execution time: 41_086_000 picoseconds. + Weight::from_parts(42_659_000, 4433) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -476,8 +476,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_472_000 picoseconds. - Weight::from_parts(34_664_000, 4383) + // Minimum execution time: 32_921_000 picoseconds. + Weight::from_parts(33_442_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -497,8 +497,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_582_000 picoseconds. - Weight::from_parts(34_414_000, 4383) + // Minimum execution time: 32_691_000 picoseconds. + Weight::from_parts(33_993_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -518,8 +518,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_953_000 picoseconds. - Weight::from_parts(34_604_000, 4383) + // Minimum execution time: 32_761_000 picoseconds. + Weight::from_parts(34_203_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -541,8 +541,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `945` // Estimated: `4410` - // Minimum execution time: 35_726_000 picoseconds. - Weight::from_parts(36_949_000, 4410) + // Minimum execution time: 35_747_000 picoseconds. + Weight::from_parts(36_779_000, 4410) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -564,8 +564,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `920` // Estimated: `4385` - // Minimum execution time: 36_458_000 picoseconds. - Weight::from_parts(37_780_000, 4385) + // Minimum execution time: 36_187_000 picoseconds. + Weight::from_parts(37_099_000, 4385) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -575,8 +575,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_772_000 picoseconds. - Weight::from_parts(7_113_000, 0) + // Minimum execution time: 6_673_000 picoseconds. + Weight::from_parts(7_434_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:1) @@ -593,8 +593,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 34_965_000 picoseconds. - Weight::from_parts(36_298_000, 4383) + // Minimum execution time: 34_504_000 picoseconds. + Weight::from_parts(35_186_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -614,8 +614,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_693_000 picoseconds. - Weight::from_parts(34_654_000, 4383) + // Minimum execution time: 33_592_000 picoseconds. + Weight::from_parts(34_684_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -635,8 +635,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_612_000 picoseconds. - Weight::from_parts(34_544_000, 4383) + // Minimum execution time: 32_741_000 picoseconds. + Weight::from_parts(34_093_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -646,8 +646,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_570_000 picoseconds. - Weight::from_parts(6_052_000, 0) + // Minimum execution time: 6_011_000 picoseconds. + Weight::from_parts(6_372_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::TxRateLimit` (r:0 w:1) @@ -656,8 +656,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_070_000 picoseconds. - Weight::from_parts(5_440_000, 0) + // Minimum execution time: 5_420_000 picoseconds. + Weight::from_parts(5_640_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } fn sudo_set_total_issuance() -> Weight { @@ -665,7 +665,7 @@ impl WeightInfo for SubstrateWeight { // Measured: `0` // Estimated: `0` // Minimum execution time: 5_791_000 picoseconds. - Weight::from_parts(5_931_000, 0) + Weight::from_parts(6_141_000, 0) } /// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0) /// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -675,8 +675,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_879_000 picoseconds. - Weight::from_parts(16_541_000, 4084) + // Minimum execution time: 15_889_000 picoseconds. + Weight::from_parts(16_400_000, 4084) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -686,8 +686,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_170_000 picoseconds. - Weight::from_parts(5_500_000, 0) + // Minimum execution time: 5_239_000 picoseconds. + Weight::from_parts(5_831_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::NominatorMinRequiredStake` (r:1 w:1) @@ -702,8 +702,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `950` // Estimated: `6890` - // Minimum execution time: 29_635_000 picoseconds. - Weight::from_parts(30_697_000, 6890) + // Minimum execution time: 29_575_000 picoseconds. + Weight::from_parts(30_617_000, 6890) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -713,8 +713,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_039_000 picoseconds. - Weight::from_parts(5_420_000, 0) + // Minimum execution time: 5_249_000 picoseconds. + Weight::from_parts(5_620_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::MinDelegateTake` (r:0 w:1) @@ -723,8 +723,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_130_000 picoseconds. - Weight::from_parts(5_490_000, 0) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_831_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -747,8 +747,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `954` // Estimated: `4419` - // Minimum execution time: 36_879_000 picoseconds. - Weight::from_parts(38_100_000, 4419) + // Minimum execution time: 36_688_000 picoseconds. + Weight::from_parts(37_690_000, 4419) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -766,8 +766,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_977_000 picoseconds. - Weight::from_parts(25_538_000, 4280) + // Minimum execution time: 24_345_000 picoseconds. + Weight::from_parts(25_497_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -787,8 +787,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `962` // Estimated: `4427` - // Minimum execution time: 33_152_000 picoseconds. - Weight::from_parts(34_224_000, 4427) + // Minimum execution time: 32_841_000 picoseconds. + Weight::from_parts(33_773_000, 4427) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -798,8 +798,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_180_000 picoseconds. - Weight::from_parts(5_370_000, 0) + // Minimum execution time: 5_470_000 picoseconds. + Weight::from_parts(5_751_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::ColdkeySwapReannouncementDelay` (r:0 w:1) @@ -808,8 +808,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_980_000 picoseconds. - Weight::from_parts(5_360_000, 0) + // Minimum execution time: 5_340_000 picoseconds. + Weight::from_parts(5_721_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::DissolveNetworkScheduleDuration` (r:0 w:1) @@ -818,7 +818,7 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_209_000 picoseconds. + // Minimum execution time: 5_290_000 picoseconds. Weight::from_parts(5_591_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -836,8 +836,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 27_702_000 picoseconds. - Weight::from_parts(28_343_000, 4280) + // Minimum execution time: 27_401_000 picoseconds. + Weight::from_parts(28_122_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -847,8 +847,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 5_851_000 picoseconds. - Weight::from_parts(6_162_000, 3507) + // Minimum execution time: 6_211_000 picoseconds. + Weight::from_parts(6_382_000, 3507) .saturating_add(T::DbWeight::get().reads(1_u64)) } /// Storage: `SubtensorModule::SubnetMovingAlpha` (r:0 w:1) @@ -857,8 +857,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_635_000 picoseconds. - Weight::from_parts(2_955_000, 0) + // Minimum execution time: 2_816_000 picoseconds. + Weight::from_parts(2_996_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::EMAPriceHalvingBlocks` (r:0 w:1) @@ -867,8 +867,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_797_000 picoseconds. - Weight::from_parts(4_198_000, 0) + // Minimum execution time: 3_787_000 picoseconds. + Weight::from_parts(4_228_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -887,8 +887,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 30_396_000 picoseconds. - Weight::from_parts(31_438_000, 4383) + // Minimum execution time: 29_746_000 picoseconds. + Weight::from_parts(30_808_000, 4383) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -906,8 +906,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 27_962_000 picoseconds. - Weight::from_parts(28_583_000, 4280) + // Minimum execution time: 27_221_000 picoseconds. + Weight::from_parts(27_762_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -925,8 +925,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 29_565_000 picoseconds. - Weight::from_parts(30_507_000, 4280) + // Minimum execution time: 29_094_000 picoseconds. + Weight::from_parts(30_346_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -938,8 +938,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_720_000 picoseconds. - Weight::from_parts(16_351_000, 4084) + // Minimum execution time: 15_879_000 picoseconds. + Weight::from_parts(16_461_000, 4084) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -953,8 +953,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `712` // Estimated: `4177` - // Minimum execution time: 25_036_000 picoseconds. - Weight::from_parts(25_687_000, 4177) + // Minimum execution time: 24_515_000 picoseconds. + Weight::from_parts(25_568_000, 4177) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -972,8 +972,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_526_000 picoseconds. - Weight::from_parts(25_467_000, 4280) + // Minimum execution time: 24_024_000 picoseconds. + Weight::from_parts(24_776_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -983,8 +983,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_119_000 picoseconds. - Weight::from_parts(5_450_000, 0) + // Minimum execution time: 5_289_000 picoseconds. + Weight::from_parts(5_701_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::OwnerHyperparamRateLimit` (r:0 w:1) @@ -993,8 +993,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_239_000 picoseconds. - Weight::from_parts(5_471_000, 0) + // Minimum execution time: 5_359_000 picoseconds. + Weight::from_parts(6_262_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -1011,8 +1011,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_385_000 picoseconds. - Weight::from_parts(25_107_000, 4280) + // Minimum execution time: 24_095_000 picoseconds. + Weight::from_parts(24_696_000, 4280) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1036,8 +1036,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `933` // Estimated: `4398` - // Minimum execution time: 37_540_000 picoseconds. - Weight::from_parts(38_302_000, 4398) + // Minimum execution time: 36_998_000 picoseconds. + Weight::from_parts(38_441_000, 4398) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1047,8 +1047,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_523_000 picoseconds. - Weight::from_parts(6_783_000, 0) + // Minimum execution time: 6_893_000 picoseconds. + Weight::from_parts(7_113_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::MaxEpochsPerBlock` (r:0 w:1) @@ -1057,8 +1057,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_219_000 picoseconds. - Weight::from_parts(5_530_000, 0) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_801_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } @@ -1072,10 +1072,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_777_000 picoseconds. - Weight::from_parts(4_442_146, 0) - // Standard Error: 826 - .saturating_add(Weight::from_parts(29_392, 0).saturating_mul(a.into())) + // Minimum execution time: 3_918_000 picoseconds. + Weight::from_parts(4_664_367, 0) + // Standard Error: 744 + .saturating_add(Weight::from_parts(22_586, 0).saturating_mul(a.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Grandpa::PendingChange` (r:1 w:1) @@ -1085,10 +1085,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `174` // Estimated: `2779` - // Minimum execution time: 7_233_000 picoseconds. - Weight::from_parts(7_972_506, 2779) + // Minimum execution time: 7_174_000 picoseconds. + Weight::from_parts(7_893_458, 2779) // Standard Error: 896 - .saturating_add(Weight::from_parts(15_444, 0).saturating_mul(a.into())) + .saturating_add(Weight::from_parts(18_950, 0).saturating_mul(a.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1098,8 +1098,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_100_000 picoseconds. - Weight::from_parts(5_400_000, 0) + // Minimum execution time: 5_319_000 picoseconds. + Weight::from_parts(5_791_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -1116,8 +1116,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `747` // Estimated: `4212` - // Minimum execution time: 27_641_000 picoseconds. - Weight::from_parts(28_633_000, 4212) + // Minimum execution time: 26_990_000 picoseconds. + Weight::from_parts(28_343_000, 4212) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1137,8 +1137,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_653_000 picoseconds. - Weight::from_parts(34_704_000, 4383) + // Minimum execution time: 32_811_000 picoseconds. + Weight::from_parts(33_703_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1158,8 +1158,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_482_000 picoseconds. - Weight::from_parts(34_554_000, 4383) + // Minimum execution time: 33_122_000 picoseconds. + Weight::from_parts(33_873_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1171,8 +1171,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_799_000 picoseconds. - Weight::from_parts(16_420_000, 4084) + // Minimum execution time: 15_519_000 picoseconds. + Weight::from_parts(16_280_000, 4084) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1192,8 +1192,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_192_000 picoseconds. - Weight::from_parts(34_204_000, 4383) + // Minimum execution time: 33_072_000 picoseconds. + Weight::from_parts(34_364_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1213,8 +1213,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_432_000 picoseconds. - Weight::from_parts(34_495_000, 4383) + // Minimum execution time: 33_342_000 picoseconds. + Weight::from_parts(34_123_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1234,8 +1234,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_633_000 picoseconds. - Weight::from_parts(34_354_000, 4383) + // Minimum execution time: 32_931_000 picoseconds. + Weight::from_parts(34_023_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1257,8 +1257,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 35_015_000 picoseconds. - Weight::from_parts(35_896_000, 4383) + // Minimum execution time: 33_853_000 picoseconds. + Weight::from_parts(35_036_000, 4383) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1278,8 +1278,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_442_000 picoseconds. - Weight::from_parts(34_434_000, 4383) + // Minimum execution time: 32_941_000 picoseconds. + Weight::from_parts(34_404_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1291,8 +1291,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_770_000 picoseconds. - Weight::from_parts(16_320_000, 4084) + // Minimum execution time: 16_039_000 picoseconds. + Weight::from_parts(16_661_000, 4084) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1312,8 +1312,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_472_000 picoseconds. - Weight::from_parts(34_103_000, 4383) + // Minimum execution time: 32_641_000 picoseconds. + Weight::from_parts(33_662_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1335,8 +1335,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 34_023_000 picoseconds. - Weight::from_parts(35_165_000, 4383) + // Minimum execution time: 34_033_000 picoseconds. + Weight::from_parts(34_995_000, 4383) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1356,8 +1356,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 30_646_000 picoseconds. - Weight::from_parts(31_268_000, 4383) + // Minimum execution time: 29_826_000 picoseconds. + Weight::from_parts(30_547_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1369,8 +1369,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_719_000 picoseconds. - Weight::from_parts(16_301_000, 4084) + // Minimum execution time: 15_669_000 picoseconds. + Weight::from_parts(16_420_000, 4084) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1394,8 +1394,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 36_909_000 picoseconds. - Weight::from_parts(37_890_000, 4383) + // Minimum execution time: 36_428_000 picoseconds. + Weight::from_parts(37_490_000, 4383) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1421,8 +1421,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `968` // Estimated: `4433` - // Minimum execution time: 42_299_000 picoseconds. - Weight::from_parts(43_381_000, 4433) + // Minimum execution time: 41_086_000 picoseconds. + Weight::from_parts(42_659_000, 4433) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1442,8 +1442,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_472_000 picoseconds. - Weight::from_parts(34_664_000, 4383) + // Minimum execution time: 32_921_000 picoseconds. + Weight::from_parts(33_442_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1463,8 +1463,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_582_000 picoseconds. - Weight::from_parts(34_414_000, 4383) + // Minimum execution time: 32_691_000 picoseconds. + Weight::from_parts(33_993_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1484,8 +1484,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_953_000 picoseconds. - Weight::from_parts(34_604_000, 4383) + // Minimum execution time: 32_761_000 picoseconds. + Weight::from_parts(34_203_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1507,8 +1507,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `945` // Estimated: `4410` - // Minimum execution time: 35_726_000 picoseconds. - Weight::from_parts(36_949_000, 4410) + // Minimum execution time: 35_747_000 picoseconds. + Weight::from_parts(36_779_000, 4410) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1530,8 +1530,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `920` // Estimated: `4385` - // Minimum execution time: 36_458_000 picoseconds. - Weight::from_parts(37_780_000, 4385) + // Minimum execution time: 36_187_000 picoseconds. + Weight::from_parts(37_099_000, 4385) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1541,8 +1541,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_772_000 picoseconds. - Weight::from_parts(7_113_000, 0) + // Minimum execution time: 6_673_000 picoseconds. + Weight::from_parts(7_434_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:1) @@ -1559,8 +1559,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 34_965_000 picoseconds. - Weight::from_parts(36_298_000, 4383) + // Minimum execution time: 34_504_000 picoseconds. + Weight::from_parts(35_186_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1580,8 +1580,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_693_000 picoseconds. - Weight::from_parts(34_654_000, 4383) + // Minimum execution time: 33_592_000 picoseconds. + Weight::from_parts(34_684_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1601,8 +1601,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 33_612_000 picoseconds. - Weight::from_parts(34_544_000, 4383) + // Minimum execution time: 32_741_000 picoseconds. + Weight::from_parts(34_093_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1612,8 +1612,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_570_000 picoseconds. - Weight::from_parts(6_052_000, 0) + // Minimum execution time: 6_011_000 picoseconds. + Weight::from_parts(6_372_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::TxRateLimit` (r:0 w:1) @@ -1622,8 +1622,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_070_000 picoseconds. - Weight::from_parts(5_440_000, 0) + // Minimum execution time: 5_420_000 picoseconds. + Weight::from_parts(5_640_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } fn sudo_set_total_issuance() -> Weight { @@ -1631,7 +1631,7 @@ impl WeightInfo for () { // Measured: `0` // Estimated: `0` // Minimum execution time: 5_791_000 picoseconds. - Weight::from_parts(5_931_000, 0) + Weight::from_parts(6_141_000, 0) } /// Storage: `SubtensorModule::NetworksAdded` (r:1 w:0) /// Proof: `SubtensorModule::NetworksAdded` (`max_values`: None, `max_size`: None, mode: `Measured`) @@ -1641,8 +1641,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_879_000 picoseconds. - Weight::from_parts(16_541_000, 4084) + // Minimum execution time: 15_889_000 picoseconds. + Weight::from_parts(16_400_000, 4084) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1652,8 +1652,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_170_000 picoseconds. - Weight::from_parts(5_500_000, 0) + // Minimum execution time: 5_239_000 picoseconds. + Weight::from_parts(5_831_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::NominatorMinRequiredStake` (r:1 w:1) @@ -1668,8 +1668,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `950` // Estimated: `6890` - // Minimum execution time: 29_635_000 picoseconds. - Weight::from_parts(30_697_000, 6890) + // Minimum execution time: 29_575_000 picoseconds. + Weight::from_parts(30_617_000, 6890) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1679,8 +1679,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_039_000 picoseconds. - Weight::from_parts(5_420_000, 0) + // Minimum execution time: 5_249_000 picoseconds. + Weight::from_parts(5_620_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::MinDelegateTake` (r:0 w:1) @@ -1689,8 +1689,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_130_000 picoseconds. - Weight::from_parts(5_490_000, 0) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_831_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -1713,8 +1713,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `954` // Estimated: `4419` - // Minimum execution time: 36_879_000 picoseconds. - Weight::from_parts(38_100_000, 4419) + // Minimum execution time: 36_688_000 picoseconds. + Weight::from_parts(37_690_000, 4419) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1732,8 +1732,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_977_000 picoseconds. - Weight::from_parts(25_538_000, 4280) + // Minimum execution time: 24_345_000 picoseconds. + Weight::from_parts(25_497_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1753,8 +1753,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `962` // Estimated: `4427` - // Minimum execution time: 33_152_000 picoseconds. - Weight::from_parts(34_224_000, 4427) + // Minimum execution time: 32_841_000 picoseconds. + Weight::from_parts(33_773_000, 4427) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1764,8 +1764,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_180_000 picoseconds. - Weight::from_parts(5_370_000, 0) + // Minimum execution time: 5_470_000 picoseconds. + Weight::from_parts(5_751_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::ColdkeySwapReannouncementDelay` (r:0 w:1) @@ -1774,8 +1774,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_980_000 picoseconds. - Weight::from_parts(5_360_000, 0) + // Minimum execution time: 5_340_000 picoseconds. + Weight::from_parts(5_721_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::DissolveNetworkScheduleDuration` (r:0 w:1) @@ -1784,7 +1784,7 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_209_000 picoseconds. + // Minimum execution time: 5_290_000 picoseconds. Weight::from_parts(5_591_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1802,8 +1802,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 27_702_000 picoseconds. - Weight::from_parts(28_343_000, 4280) + // Minimum execution time: 27_401_000 picoseconds. + Weight::from_parts(28_122_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1813,8 +1813,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `42` // Estimated: `3507` - // Minimum execution time: 5_851_000 picoseconds. - Weight::from_parts(6_162_000, 3507) + // Minimum execution time: 6_211_000 picoseconds. + Weight::from_parts(6_382_000, 3507) .saturating_add(RocksDbWeight::get().reads(1_u64)) } /// Storage: `SubtensorModule::SubnetMovingAlpha` (r:0 w:1) @@ -1823,8 +1823,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_635_000 picoseconds. - Weight::from_parts(2_955_000, 0) + // Minimum execution time: 2_816_000 picoseconds. + Weight::from_parts(2_996_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::EMAPriceHalvingBlocks` (r:0 w:1) @@ -1833,8 +1833,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_797_000 picoseconds. - Weight::from_parts(4_198_000, 0) + // Minimum execution time: 3_787_000 picoseconds. + Weight::from_parts(4_228_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -1853,8 +1853,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `918` // Estimated: `4383` - // Minimum execution time: 30_396_000 picoseconds. - Weight::from_parts(31_438_000, 4383) + // Minimum execution time: 29_746_000 picoseconds. + Weight::from_parts(30_808_000, 4383) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1872,8 +1872,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 27_962_000 picoseconds. - Weight::from_parts(28_583_000, 4280) + // Minimum execution time: 27_221_000 picoseconds. + Weight::from_parts(27_762_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1891,8 +1891,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 29_565_000 picoseconds. - Weight::from_parts(30_507_000, 4280) + // Minimum execution time: 29_094_000 picoseconds. + Weight::from_parts(30_346_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1904,8 +1904,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `619` // Estimated: `4084` - // Minimum execution time: 15_720_000 picoseconds. - Weight::from_parts(16_351_000, 4084) + // Minimum execution time: 15_879_000 picoseconds. + Weight::from_parts(16_461_000, 4084) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1919,8 +1919,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `712` // Estimated: `4177` - // Minimum execution time: 25_036_000 picoseconds. - Weight::from_parts(25_687_000, 4177) + // Minimum execution time: 24_515_000 picoseconds. + Weight::from_parts(25_568_000, 4177) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -1938,8 +1938,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_526_000 picoseconds. - Weight::from_parts(25_467_000, 4280) + // Minimum execution time: 24_024_000 picoseconds. + Weight::from_parts(24_776_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -1949,8 +1949,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_119_000 picoseconds. - Weight::from_parts(5_450_000, 0) + // Minimum execution time: 5_289_000 picoseconds. + Weight::from_parts(5_701_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::OwnerHyperparamRateLimit` (r:0 w:1) @@ -1959,8 +1959,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_239_000 picoseconds. - Weight::from_parts(5_471_000, 0) + // Minimum execution time: 5_359_000 picoseconds. + Weight::from_parts(6_262_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Tempo` (r:1 w:0) @@ -1977,8 +1977,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `815` // Estimated: `4280` - // Minimum execution time: 24_385_000 picoseconds. - Weight::from_parts(25_107_000, 4280) + // Minimum execution time: 24_095_000 picoseconds. + Weight::from_parts(24_696_000, 4280) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2002,8 +2002,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `933` // Estimated: `4398` - // Minimum execution time: 37_540_000 picoseconds. - Weight::from_parts(38_302_000, 4398) + // Minimum execution time: 36_998_000 picoseconds. + Weight::from_parts(38_441_000, 4398) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2013,8 +2013,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_523_000 picoseconds. - Weight::from_parts(6_783_000, 0) + // Minimum execution time: 6_893_000 picoseconds. + Weight::from_parts(7_113_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::MaxEpochsPerBlock` (r:0 w:1) @@ -2023,8 +2023,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_219_000 picoseconds. - Weight::from_parts(5_530_000, 0) + // Minimum execution time: 5_410_000 picoseconds. + Weight::from_parts(5_801_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } } diff --git a/pallets/proxy/src/weights.rs b/pallets/proxy/src/weights.rs index 1885d8b3f6..dba859ae7f 100644 --- a/pallets/proxy/src/weights.rs +++ b/pallets/proxy/src/weights.rs @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.y6dm1DHMCB +// --output=/tmp/tmp.h2eSm1Xq5e // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -66,10 +66,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `637 + p * (37 ±0)` // Estimated: `4254 + p * (37 ±0)` - // Minimum execution time: 26_629_000 picoseconds. - Weight::from_parts(28_026_265, 4254) - // Standard Error: 4_888 - .saturating_add(Weight::from_parts(53_205, 0).saturating_mul(p.into())) + // Minimum execution time: 26_529_000 picoseconds. + Weight::from_parts(27_681_445, 4254) + // Standard Error: 3_590 + .saturating_add(Weight::from_parts(80_836, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into())) @@ -92,12 +92,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `894 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615 + a * (68 ±0) + p * (37 ±0)` - // Minimum execution time: 52_588_000 picoseconds. - Weight::from_parts(53_234_507, 8615) - // Standard Error: 1_933 - .saturating_add(Weight::from_parts(228_831, 0).saturating_mul(a.into())) - // Standard Error: 7_745 - .saturating_add(Weight::from_parts(54_037, 0).saturating_mul(p.into())) + // Minimum execution time: 51_626_000 picoseconds. + Weight::from_parts(52_920_096, 8615) + // Standard Error: 1_690 + .saturating_add(Weight::from_parts(212_616, 0).saturating_mul(a.into())) + // Standard Error: 6_772 + .saturating_add(Weight::from_parts(48_853, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into())) @@ -113,12 +113,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 26_049_000 picoseconds. - Weight::from_parts(25_595_226, 8615) - // Standard Error: 1_041 - .saturating_add(Weight::from_parts(205_163, 0).saturating_mul(a.into())) - // Standard Error: 4_172 - .saturating_add(Weight::from_parts(40_277, 0).saturating_mul(p.into())) + // Minimum execution time: 25_457_000 picoseconds. + Weight::from_parts(25_454_270, 8615) + // Standard Error: 1_102 + .saturating_add(Weight::from_parts(204_204, 0).saturating_mul(a.into())) + // Standard Error: 4_416 + .saturating_add(Weight::from_parts(20_244, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -128,16 +128,14 @@ impl WeightInfo for SubstrateWeight { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn reject_announcement(a: u32, p: u32, ) -> Weight { + fn reject_announcement(a: u32, _p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 26_269_000 picoseconds. - Weight::from_parts(26_388_332, 8615) - // Standard Error: 1_181 - .saturating_add(Weight::from_parts(199_703, 0).saturating_mul(a.into())) - // Standard Error: 4_732 - .saturating_add(Weight::from_parts(17_846, 0).saturating_mul(p.into())) + // Minimum execution time: 25_427_000 picoseconds. + Weight::from_parts(26_360_868, 8615) + // Standard Error: 1_187 + .saturating_add(Weight::from_parts(191_060, 0).saturating_mul(a.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -153,12 +151,12 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `308 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615` - // Minimum execution time: 33_873_000 picoseconds. - Weight::from_parts(34_286_251, 8615) - // Standard Error: 2_040 - .saturating_add(Weight::from_parts(194_092, 0).saturating_mul(a.into())) - // Standard Error: 8_174 - .saturating_add(Weight::from_parts(53_615, 0).saturating_mul(p.into())) + // Minimum execution time: 33_251_000 picoseconds. + Weight::from_parts(33_549_165, 8615) + // Standard Error: 1_456 + .saturating_add(Weight::from_parts(198_190, 0).saturating_mul(a.into())) + // Standard Error: 5_835 + .saturating_add(Weight::from_parts(38_352, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -169,10 +167,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_907_000 picoseconds. - Weight::from_parts(25_770_804, 4254) - // Standard Error: 2_400 - .saturating_add(Weight::from_parts(80_892, 0).saturating_mul(p.into())) + // Minimum execution time: 24_445_000 picoseconds. + Weight::from_parts(25_355_274, 4254) + // Standard Error: 2_238 + .saturating_add(Weight::from_parts(71_464, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -185,10 +183,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_690_000 picoseconds. - Weight::from_parts(27_827_049, 4254) - // Standard Error: 2_885 - .saturating_add(Weight::from_parts(64_054, 0).saturating_mul(p.into())) + // Minimum execution time: 25_989_000 picoseconds. + Weight::from_parts(27_257_916, 4254) + // Standard Error: 2_553 + .saturating_add(Weight::from_parts(61_685, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -199,10 +197,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_159_000 picoseconds. - Weight::from_parts(27_407_028, 4254) - // Standard Error: 3_009 - .saturating_add(Weight::from_parts(55_808, 0).saturating_mul(p.into())) + // Minimum execution time: 25_818_000 picoseconds. + Weight::from_parts(26_983_745, 4254) + // Standard Error: 2_880 + .saturating_add(Weight::from_parts(33_050, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -213,10 +211,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 26_699_000 picoseconds. - Weight::from_parts(27_853_436, 4254) - // Standard Error: 3_475 - .saturating_add(Weight::from_parts(20_160, 0).saturating_mul(p.into())) + // Minimum execution time: 25_899_000 picoseconds. + Weight::from_parts(26_924_717, 4254) + // Standard Error: 2_885 + .saturating_add(Weight::from_parts(28_165, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -227,10 +225,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_437_000 picoseconds. - Weight::from_parts(26_529_087, 4254) - // Standard Error: 2_476 - .saturating_add(Weight::from_parts(48_014, 0).saturating_mul(p.into())) + // Minimum execution time: 24_946_000 picoseconds. + Weight::from_parts(26_136_604, 4254) + // Standard Error: 3_120 + .saturating_add(Weight::from_parts(38_868, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -244,8 +242,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 46_066_000 picoseconds. - Weight::from_parts(46_757_000, 8615) + // Minimum execution time: 44_283_000 picoseconds. + Weight::from_parts(45_074_000, 8615) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -258,10 +256,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_585_000 picoseconds. - Weight::from_parts(14_259_931, 4254) - // Standard Error: 1_733 - .saturating_add(Weight::from_parts(42_799, 0).saturating_mul(p.into())) + // Minimum execution time: 13_555_000 picoseconds. + Weight::from_parts(14_498_422, 4254) + // Standard Error: 2_077 + .saturating_add(Weight::from_parts(43_179, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -282,10 +280,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `637 + p * (37 ±0)` // Estimated: `4254 + p * (37 ±0)` - // Minimum execution time: 26_629_000 picoseconds. - Weight::from_parts(28_026_265, 4254) - // Standard Error: 4_888 - .saturating_add(Weight::from_parts(53_205, 0).saturating_mul(p.into())) + // Minimum execution time: 26_529_000 picoseconds. + Weight::from_parts(27_681_445, 4254) + // Standard Error: 3_590 + .saturating_add(Weight::from_parts(80_836, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) .saturating_add(Weight::from_parts(0, 37).saturating_mul(p.into())) @@ -308,12 +306,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `894 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615 + a * (68 ±0) + p * (37 ±0)` - // Minimum execution time: 52_588_000 picoseconds. - Weight::from_parts(53_234_507, 8615) - // Standard Error: 1_933 - .saturating_add(Weight::from_parts(228_831, 0).saturating_mul(a.into())) - // Standard Error: 7_745 - .saturating_add(Weight::from_parts(54_037, 0).saturating_mul(p.into())) + // Minimum execution time: 51_626_000 picoseconds. + Weight::from_parts(52_920_096, 8615) + // Standard Error: 1_690 + .saturating_add(Weight::from_parts(212_616, 0).saturating_mul(a.into())) + // Standard Error: 6_772 + .saturating_add(Weight::from_parts(48_853, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_parts(0, 68).saturating_mul(a.into())) @@ -329,12 +327,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 26_049_000 picoseconds. - Weight::from_parts(25_595_226, 8615) - // Standard Error: 1_041 - .saturating_add(Weight::from_parts(205_163, 0).saturating_mul(a.into())) - // Standard Error: 4_172 - .saturating_add(Weight::from_parts(40_277, 0).saturating_mul(p.into())) + // Minimum execution time: 25_457_000 picoseconds. + Weight::from_parts(25_454_270, 8615) + // Standard Error: 1_102 + .saturating_add(Weight::from_parts(204_204, 0).saturating_mul(a.into())) + // Standard Error: 4_416 + .saturating_add(Weight::from_parts(20_244, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -344,16 +342,14 @@ impl WeightInfo for () { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(104), added: 2579, mode: `MaxEncodedLen`) /// The range of component `a` is `[0, 74]`. /// The range of component `p` is `[1, 19]`. - fn reject_announcement(a: u32, p: u32, ) -> Weight { + fn reject_announcement(a: u32, _p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `299 + a * (68 ±0)` // Estimated: `8615` - // Minimum execution time: 26_269_000 picoseconds. - Weight::from_parts(26_388_332, 8615) - // Standard Error: 1_181 - .saturating_add(Weight::from_parts(199_703, 0).saturating_mul(a.into())) - // Standard Error: 4_732 - .saturating_add(Weight::from_parts(17_846, 0).saturating_mul(p.into())) + // Minimum execution time: 25_427_000 picoseconds. + Weight::from_parts(26_360_868, 8615) + // Standard Error: 1_187 + .saturating_add(Weight::from_parts(191_060, 0).saturating_mul(a.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -369,12 +365,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `308 + a * (68 ±0) + p * (37 ±0)` // Estimated: `8615` - // Minimum execution time: 33_873_000 picoseconds. - Weight::from_parts(34_286_251, 8615) - // Standard Error: 2_040 - .saturating_add(Weight::from_parts(194_092, 0).saturating_mul(a.into())) - // Standard Error: 8_174 - .saturating_add(Weight::from_parts(53_615, 0).saturating_mul(p.into())) + // Minimum execution time: 33_251_000 picoseconds. + Weight::from_parts(33_549_165, 8615) + // Standard Error: 1_456 + .saturating_add(Weight::from_parts(198_190, 0).saturating_mul(a.into())) + // Standard Error: 5_835 + .saturating_add(Weight::from_parts(38_352, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -385,10 +381,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 24_907_000 picoseconds. - Weight::from_parts(25_770_804, 4254) - // Standard Error: 2_400 - .saturating_add(Weight::from_parts(80_892, 0).saturating_mul(p.into())) + // Minimum execution time: 24_445_000 picoseconds. + Weight::from_parts(25_355_274, 4254) + // Standard Error: 2_238 + .saturating_add(Weight::from_parts(71_464, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -401,10 +397,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_690_000 picoseconds. - Weight::from_parts(27_827_049, 4254) - // Standard Error: 2_885 - .saturating_add(Weight::from_parts(64_054, 0).saturating_mul(p.into())) + // Minimum execution time: 25_989_000 picoseconds. + Weight::from_parts(27_257_916, 4254) + // Standard Error: 2_553 + .saturating_add(Weight::from_parts(61_685, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -415,10 +411,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 26_159_000 picoseconds. - Weight::from_parts(27_407_028, 4254) - // Standard Error: 3_009 - .saturating_add(Weight::from_parts(55_808, 0).saturating_mul(p.into())) + // Minimum execution time: 25_818_000 picoseconds. + Weight::from_parts(26_983_745, 4254) + // Standard Error: 2_880 + .saturating_add(Weight::from_parts(33_050, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -429,10 +425,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `139` // Estimated: `4254` - // Minimum execution time: 26_699_000 picoseconds. - Weight::from_parts(27_853_436, 4254) - // Standard Error: 3_475 - .saturating_add(Weight::from_parts(20_160, 0).saturating_mul(p.into())) + // Minimum execution time: 25_899_000 picoseconds. + Weight::from_parts(26_924_717, 4254) + // Standard Error: 2_885 + .saturating_add(Weight::from_parts(28_165, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -443,10 +439,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `156 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 25_437_000 picoseconds. - Weight::from_parts(26_529_087, 4254) - // Standard Error: 2_476 - .saturating_add(Weight::from_parts(48_014, 0).saturating_mul(p.into())) + // Minimum execution time: 24_946_000 picoseconds. + Weight::from_parts(26_136_604, 4254) + // Standard Error: 3_120 + .saturating_add(Weight::from_parts(38_868, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -460,8 +456,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `412` // Estimated: `8615` - // Minimum execution time: 46_066_000 picoseconds. - Weight::from_parts(46_757_000, 8615) + // Minimum execution time: 44_283_000 picoseconds. + Weight::from_parts(45_074_000, 8615) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -474,10 +470,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `119 + p * (37 ±0)` // Estimated: `4254` - // Minimum execution time: 13_585_000 picoseconds. - Weight::from_parts(14_259_931, 4254) - // Standard Error: 1_733 - .saturating_add(Weight::from_parts(42_799, 0).saturating_mul(p.into())) + // Minimum execution time: 13_555_000 picoseconds. + Weight::from_parts(14_498_422, 4254) + // Standard Error: 2_077 + .saturating_add(Weight::from_parts(43_179, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/pallets/subtensor/src/coinbase/root.rs b/pallets/subtensor/src/coinbase/root.rs index d339e0ec83..b4db388621 100644 --- a/pallets/subtensor/src/coinbase/root.rs +++ b/pallets/subtensor/src/coinbase/root.rs @@ -323,6 +323,7 @@ impl Pallet { PendingServerEmission::::remove(netuid); PendingRootAlphaDivs::::remove(netuid); PendingOwnerCut::::remove(netuid); + MinerBurned::::remove(netuid); BlocksSinceLastStep::::remove(netuid); LastMechansimStepBlock::::remove(netuid); LastAdjustmentBlock::::remove(netuid); diff --git a/pallets/subtensor/src/coinbase/run_coinbase.rs b/pallets/subtensor/src/coinbase/run_coinbase.rs index 6b2ea6de0b..d7c75964b2 100644 --- a/pallets/subtensor/src/coinbase/run_coinbase.rs +++ b/pallets/subtensor/src/coinbase/run_coinbase.rs @@ -669,14 +669,24 @@ impl Pallet { let subnet_owner_coldkey = SubnetOwner::::get(netuid); let owner_hotkeys = Self::get_owner_hotkeys(netuid, &subnet_owner_coldkey); log::debug!("incentives: owner hotkeys: {owner_hotkeys:?}"); + // Track total miner emission vs the portion withheld from miners this tempo + // (directed to an owner/immune hotkey) to record the withheld proportion. + let mut total_incentive: AlphaBalance = AlphaBalance::ZERO; + let mut withheld_incentive: AlphaBalance = AlphaBalance::ZERO; for (hotkey, incentive) in incentives { log::debug!("incentives: hotkey: {incentive:?}"); + total_incentive = total_incentive.saturating_add(incentive); // Skip/burn miner-emission for immune keys if owner_hotkeys.contains(&hotkey) { log::debug!( "incentives: hotkey: {hotkey:?} is SN owner hotkey or associated hotkey, skipping {incentive:?}" ); + // Miner emission directed to an owner (immune) hotkey is withheld from + // miners whether it is recycled or burned. Count both toward the withheld + // proportion so the emission penalty cannot be dodged by choosing Recycle + // and an unset RecycleOrBurn config is not uniquely penalized. + withheld_incentive = withheld_incentive.saturating_add(incentive); // Check if we should recycle or burn the incentive match RecycleOrBurn::::try_get(netuid) { Ok(RecycleOrBurnEnum::Recycle) => { @@ -716,6 +726,13 @@ impl Pallet { ); } + // Record the proportion of this tempo's miner emission that was withheld from + // miners (directed to owner/immune hotkeys, whether recycled or burned). + let withheld_proportion: U96F32 = U96F32::saturating_from_num(withheld_incentive.to_u64()) + .checked_div(U96F32::saturating_from_num(total_incentive.to_u64())) + .unwrap_or_else(|| U96F32::saturating_from_num(0)); + MinerBurned::::insert(netuid, withheld_proportion); + // Distribute alpha divs. let _ = AlphaDividendsPerSubnet::::clear_prefix(netuid, u32::MAX, None); for (hotkey, mut alpha_divs) in alpha_dividends { diff --git a/pallets/subtensor/src/coinbase/subnet_emissions.rs b/pallets/subtensor/src/coinbase/subnet_emissions.rs index caab671ed4..f378e3e930 100644 --- a/pallets/subtensor/src/coinbase/subnet_emissions.rs +++ b/pallets/subtensor/src/coinbase/subnet_emissions.rs @@ -352,7 +352,42 @@ impl Pallet { // redistributed to enabled subnets in `get_subnet_block_emissions`, so the // effective emission is e_i = p_i / sum(p_j) over emit-enabled subnets. pub(crate) fn get_shares(subnets_to_emit_to: &[NetUid]) -> BTreeMap { - Self::get_shares_price_ema(subnets_to_emit_to) + let price_shares = Self::get_shares_price_ema(subnets_to_emit_to); + + // Weight each subnet's price share by root_proportion * (1 - miner_burned), then + // renormalize. The effective emission is therefore proportional to + // root_proportion_i * price_i * (1 - miner_burned_i). + // - root_proportion shrinks as a subnet's alpha issuance grows, so emission is + // reallocated away from older subnets toward newer ones (easier entrance). + // - (1 - miner_burned) reallocates away from subnets that withhold miner emission. + let zero = U64F64::saturating_from_num(0); + let one = U64F64::saturating_from_num(1); + let weighted: BTreeMap = price_shares + .iter() + .map(|(netuid, share)| { + let burned = U64F64::saturating_from_num(MinerBurned::::get(netuid)).min(one); + let root_prop = U64F64::saturating_from_num(Self::root_proportion(*netuid)); + let factor = root_prop.saturating_mul(one.saturating_sub(burned)); + (*netuid, share.saturating_mul(factor)) + }) + .collect(); + + let total_weight = weighted + .values() + .copied() + .fold(zero, |acc, w| acc.saturating_add(w)); + + if total_weight > zero { + weighted + .into_iter() + .map(|(netuid, w)| (netuid, w.safe_div(total_weight))) + .collect() + } else { + // The combined weight zeroes out for every subnet (e.g. no root stake, or + // every subnet burning all of its miner emission); fall back to the + // unweighted price shares so the block's emission is not stranded. + price_shares + } } // Implementation of shares that uses subnet EMA prices (SubnetMovingPrice), diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 39fe375e6b..b1afef3401 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -67,6 +67,9 @@ pub const MAX_SUBNET_CLAIMS: usize = 5; pub const MAX_ROOT_CLAIM_THRESHOLD: u64 = 10_000_000; +/// Account flag bit that opts into receiving locked alpha transfers. +pub const ACCOUNT_FLAGS_ACCEPT_LOCKED_ALPHA: u128 = 1u128 << 0; + #[allow(deprecated)] #[deny(missing_docs)] #[import_section(errors::errors)] @@ -1190,6 +1193,11 @@ pub mod pallet { pub type Owner = StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId, ValueQuery, DefaultAccount>; + /// MAP ( coldkey ) --> flags | Account-level flags. Defaults to zero. + #[pallet::storage] + pub type AccountFlags = + StorageMap<_, Blake2_128Concat, T::AccountId, u128, ValueQuery>; + /// MAP ( hot ) --> take | Returns the hotkey delegation take. And signals that this key is open for delegation #[pallet::storage] pub type Delegates = @@ -1926,6 +1934,20 @@ pub mod pallet { pub type PendingOwnerCut = StorageMap<_, Identity, NetUid, AlphaBalance, ValueQuery, DefaultZeroAlpha>; + /// Default miner-burned proportion. + #[pallet::type_value] + pub fn DefaultMinerBurned() -> U96F32 { + U96F32::saturating_from_num(0.0) + } + /// --- MAP ( netuid ) --> miner_burned | Proportion (0..1) of this tempo's miner + /// (incentive) emission that was withheld from miners during emission distribution + /// because the recipient hotkey is owned by the subnet owner (immune key). Counts + /// emission that is either recycled or burned, so the value is independent of the + /// subnet's RecycleOrBurn configuration. + #[pallet::storage] + pub type MinerBurned = + StorageMap<_, Identity, NetUid, U96F32, ValueQuery, DefaultMinerBurned>; + /// --- MAP ( netuid ) --> blocks_since_last_step #[pallet::storage] pub type BlocksSinceLastStep = diff --git a/pallets/subtensor/src/macros/dispatches.rs b/pallets/subtensor/src/macros/dispatches.rs index 2a22915ee9..08e5bb8fdf 100644 --- a/pallets/subtensor/src/macros/dispatches.rs +++ b/pallets/subtensor/src/macros/dispatches.rs @@ -2625,5 +2625,31 @@ mod dispatches { pub fn trigger_epoch(origin: OriginFor, netuid: NetUid) -> DispatchResult { Self::do_trigger_epoch(origin, netuid) } + + /// Sets or clears whether the caller rejects incoming locked alpha. + /// + /// Coldkeys reject locked alpha by default. Passing `false` opts the + /// caller into receiving locked alpha from stake transfers or coldkey + /// swaps. + #[pallet::call_index(142)] + #[pallet::weight(( + ::DbWeight::get().reads_writes(1, 1), + DispatchClass::Normal, + Pays::Yes + ))] + pub fn set_reject_locked_alpha(origin: OriginFor, enabled: bool) -> DispatchResult { + let coldkey = ensure_signed(origin)?; + AccountFlags::::mutate_exists(&coldkey, |maybe_flags| { + let mut flags = maybe_flags.unwrap_or_default(); + if enabled { + flags &= !crate::ACCOUNT_FLAGS_ACCEPT_LOCKED_ALPHA; + } else { + flags |= crate::ACCOUNT_FLAGS_ACCEPT_LOCKED_ALPHA; + } + *maybe_flags = if flags == 0 { None } else { Some(flags) }; + }); + Self::deposit_event(Event::RejectLockedAlphaUpdated { coldkey, enabled }); + Ok(()) + } } } diff --git a/pallets/subtensor/src/macros/errors.rs b/pallets/subtensor/src/macros/errors.rs index 32e0fbcbd6..6401b5846d 100644 --- a/pallets/subtensor/src/macros/errors.rs +++ b/pallets/subtensor/src/macros/errors.rs @@ -317,5 +317,7 @@ mod errors { /// an out-of-band epoch would desync the CRv3 reveal window from the wall-clock /// Drand schedule and silently drop committed weights. DynamicTempoBlockedByCommitReveal, + /// The destination coldkey rejects incoming locked alpha. + AccountRejectsLockedAlpha, } } diff --git a/pallets/subtensor/src/macros/events.rs b/pallets/subtensor/src/macros/events.rs index adcd97e0cf..7bc9bf450a 100644 --- a/pallets/subtensor/src/macros/events.rs +++ b/pallets/subtensor/src/macros/events.rs @@ -669,5 +669,13 @@ mod events { /// Whether this coldkey's locks are now perpetual. enabled: bool, }, + + /// A coldkey's reject locked alpha account flag was updated. + RejectLockedAlphaUpdated { + /// The coldkey whose flag changed. + coldkey: T::AccountId, + /// Whether this coldkey rejects incoming locked alpha. + enabled: bool, + }, } } diff --git a/pallets/subtensor/src/staking/lock.rs b/pallets/subtensor/src/staking/lock.rs index 78e2734c5b..05746c753d 100644 --- a/pallets/subtensor/src/staking/lock.rs +++ b/pallets/subtensor/src/staking/lock.rs @@ -467,6 +467,29 @@ impl Pallet { LockingColdkeys::::remove((netuid, hotkey, coldkey)); } + pub fn account_rejects_locked_alpha(coldkey: &T::AccountId) -> bool { + AccountFlags::::get(coldkey) & crate::ACCOUNT_FLAGS_ACCEPT_LOCKED_ALPHA != 1 + } + + pub fn ensure_can_receive_locked_alpha( + coldkey: &T::AccountId, + amount: AlphaBalance, + ) -> DispatchResult { + let rejects_locked_alpha = Self::account_rejects_locked_alpha(coldkey); + Self::ensure_can_receive_locked_alpha_with_flag(rejects_locked_alpha, amount) + } + + fn ensure_can_receive_locked_alpha_with_flag( + rejects_locked_alpha: bool, + amount: AlphaBalance, + ) -> DispatchResult { + if amount.is_zero() { + return Ok(()); + } + ensure!(!rejects_locked_alpha, Error::::AccountRejectsLockedAlpha); + Ok(()) + } + pub fn insert_lock_state( coldkey: &T::AccountId, netuid: NetUid, @@ -1359,6 +1382,10 @@ impl Pallet { Self::ensure_no_active_locks(new_coldkey)?; let mut locks_to_transfer: Vec<(NetUid, T::AccountId, LockState)> = Vec::new(); + let now = Self::get_current_block_as_u64(); + let unlock_rate = UnlockRate::::get(); + let maturity_rate = MaturityRate::::get(); + let new_coldkey_rejects_locked_alpha = Self::account_rejects_locked_alpha(new_coldkey); let decaying_locks_to_transfer: Vec<(NetUid, bool)> = DecayingLock::::iter_prefix(old_coldkey).collect(); @@ -1367,15 +1394,8 @@ impl Pallet { locks_to_transfer.push((netuid, hotkey, lock)); } - for (netuid, decaying) in decaying_locks_to_transfer.iter() { - DecayingLock::::insert(new_coldkey, *netuid, *decaying); - } - - // Remove locks for old coldkey and insert for new + let mut rolled_locks_to_transfer: Vec<(NetUid, T::AccountId, LockState, bool)> = Vec::new(); for (netuid, hotkey, lock) in locks_to_transfer { - let now = Self::get_current_block_as_u64(); - let unlock_rate = UnlockRate::::get(); - let maturity_rate = MaturityRate::::get(); let perpetual_lock = decaying_locks_to_transfer .iter() .any(|(decaying_netuid, decaying)| *decaying_netuid == netuid && !*decaying); @@ -1387,8 +1407,38 @@ impl Pallet { Self::is_subnet_owner_hotkey(netuid, &hotkey), perpetual_lock, ); + Self::ensure_can_receive_locked_alpha_with_flag( + new_coldkey_rejects_locked_alpha, + old_lock.0.locked_mass, + )?; + rolled_locks_to_transfer.push((netuid, hotkey, old_lock.0, perpetual_lock)); + } + + // Remove old locks and reduce old aggregate buckets before moving the + // perpetual-lock flags; aggregate selection depends on the old flag. + for (netuid, hotkey, old_lock, _) in rolled_locks_to_transfer.iter() { + Lock::::remove((old_coldkey.clone(), *netuid, hotkey.clone())); + Self::maybe_remove_locking_coldkey(hotkey, *netuid, old_coldkey); + Self::reduce_aggregate_lock( + old_coldkey, + hotkey, + *netuid, + old_lock.locked_mass, + old_lock.conviction, + ); + } + + for (netuid, _) in decaying_locks_to_transfer { + if let Some(decaying) = DecayingLock::::take(old_coldkey, netuid) { + DecayingLock::::insert(new_coldkey, netuid, decaying); + } + } + + // Insert locks for the new coldkey and add to the destination aggregate + // buckets after the flags have moved. + for (netuid, hotkey, old_lock, perpetual_lock) in rolled_locks_to_transfer { let new_lock = ConvictionModel::roll_forward_lock( - old_lock.0.clone(), + old_lock.clone(), now, unlock_rate, maturity_rate, @@ -1396,23 +1446,10 @@ impl Pallet { perpetual_lock, ) .0; - Lock::::remove((old_coldkey.clone(), netuid, hotkey.clone())); - Self::maybe_remove_locking_coldkey(&hotkey, netuid, old_coldkey); - Self::reduce_aggregate_lock( - old_coldkey, - &hotkey, - netuid, - old_lock.0.locked_mass, - old_lock.0.conviction, - ); Self::insert_lock_state(new_coldkey, netuid, &hotkey, new_lock.clone()); Self::add_aggregate_lock(new_coldkey, &hotkey, netuid, new_lock); } - for (netuid, _) in decaying_locks_to_transfer { - DecayingLock::::remove(old_coldkey, netuid); - } - Ok(()) } @@ -1838,6 +1875,7 @@ impl Pallet { .conviction .saturating_add(conviction_transfer); } + Self::ensure_can_receive_locked_alpha(destination_coldkey, locked_transfer)?; source_lock = ConvictionModel::roll_forward_lock( source_lock, diff --git a/pallets/subtensor/src/tests/coinbase.rs b/pallets/subtensor/src/tests/coinbase.rs index 52a9981dfd..3ac421ac50 100644 --- a/pallets/subtensor/src/tests/coinbase.rs +++ b/pallets/subtensor/src/tests/coinbase.rs @@ -2894,6 +2894,46 @@ fn test_run_coinbase_not_started_start_after() { }); } +/// Test that coinbase updates protocol liquidity accounting. +/// cargo test --package pallet-subtensor --lib -- tests::coinbase::test_coinbase_v3_liquidity_update --exact --show-output +#[test] +fn test_coinbase_v3_liquidity_update() { + new_test_ext(1).execute_with(|| { + let owner_hotkey = U256::from(1); + let owner_coldkey = U256::from(2); + + // add network + let netuid = add_dynamic_network(&owner_hotkey, &owner_coldkey); + + // Force the swap to initialize + SubtensorModule::swap_tao_for_alpha( + netuid, + TaoBalance::ZERO, + 1_000_000_000_000_u64.into(), + false, + ) + .unwrap(); + + let tao_before = SubnetTAO::::get(netuid); + let alpha_in_before = SubnetAlphaIn::::get(netuid); + + // Enable emissions and run coinbase (which will adjust protocol liquidity) + let emission: u64 = 1_234_567; + let emission_credit = SubtensorModule::mint_tao(emission.into()); + // Price-based emission shares require a non-zero moving price. + SubnetMovingPrice::::insert(netuid, I96F32::from_num(1)); + // Keep root_proportion ~1 so the injection cap does not bind. + set_full_injection_root_stake(); + FirstEmissionBlockNumber::::insert(netuid, 0); + SubtensorModule::run_coinbase(emission_credit); + + assert!(!SubnetTaoInEmission::::get(netuid).is_zero()); + assert!(!SubnetAlphaInEmission::::get(netuid).is_zero()); + assert!(SubnetTAO::::get(netuid) > tao_before); + assert!(SubnetAlphaIn::::get(netuid) > alpha_in_before); + }); +} + // SKIP_WASM_BUILD=1 RUST_LOG=debug cargo test --package pallet-subtensor --lib -- tests::coinbase::test_drain_alpha_childkey_parentkey_with_burn --exact --show-output --nocapture #[test] fn test_drain_alpha_childkey_parentkey_with_burn() { diff --git a/pallets/subtensor/src/tests/locks.rs b/pallets/subtensor/src/tests/locks.rs index 4eaf01668c..91b48b7881 100644 --- a/pallets/subtensor/src/tests/locks.rs +++ b/pallets/subtensor/src/tests/locks.rs @@ -6,6 +6,7 @@ )] use approx::assert_abs_diff_eq; +use frame_support::dispatch::{GetDispatchInfo, Pays}; use frame_support::weights::Weight; use frame_support::{assert_noop, assert_ok}; use safe_math::FixedExt; @@ -96,6 +97,40 @@ fn roll_forward_individual_lock( ) } +#[test] +fn test_account_flags_default_to_zero_and_reject_locked_alpha_setter_pays_fee() { + new_test_ext(1).execute_with(|| { + let coldkey = U256::from(1); + + assert_eq!(AccountFlags::::get(coldkey), 0); + assert!(!AccountFlags::::contains_key(coldkey)); + assert!(SubtensorModule::account_rejects_locked_alpha(&coldkey)); + + let call = + RuntimeCall::SubtensorModule(crate::Call::set_reject_locked_alpha { enabled: true }); + assert_eq!(call.get_dispatch_info().pays_fee, Pays::Yes); + + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(coldkey), + false, + )); + assert_eq!( + AccountFlags::::get(coldkey), + ACCOUNT_FLAGS_ACCEPT_LOCKED_ALPHA + ); + assert!(AccountFlags::::contains_key(coldkey)); + assert!(!SubtensorModule::account_rejects_locked_alpha(&coldkey)); + + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(coldkey), + true, + )); + assert_eq!(AccountFlags::::get(coldkey), 0); + assert!(!AccountFlags::::contains_key(coldkey)); + assert!(SubtensorModule::account_rejects_locked_alpha(&coldkey)); + }); +} + fn roll_forward_hotkey_lock(lock: LockState, now: u64) -> LockState { roll_forward_lock(lock, now, false, true) } @@ -2152,6 +2187,10 @@ fn test_do_transfer_stake_same_subnet_transfers_lock_to_destination_coldkey() { let hotkey = U256::from(2); let netuid = setup_subnet_with_stake(coldkey_sender, hotkey, 100_000_000_000); DecayingLock::::insert(coldkey_receiver, netuid, false); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(coldkey_receiver), + false, + )); let total = SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_sender, netuid); let lock_half = total / 2.into(); @@ -2247,6 +2286,101 @@ fn test_move_stake_cross_subnet_blocked_by_lock() { }); } +#[test] +fn test_do_transfer_stake_rejects_locked_alpha_to_flagged_destination() { + new_test_ext(1).execute_with(|| { + let coldkey_sender = U256::from(1); + let coldkey_receiver = U256::from(5); + let hotkey = U256::from(2); + let netuid = setup_subnet_with_stake(coldkey_sender, hotkey, 100_000_000_000); + + let total = SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_sender, netuid); + let lock_half = total / 2.into(); + assert_ok!(SubtensorModule::do_lock_stake( + &coldkey_sender, + netuid, + &hotkey, + lock_half, + )); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(coldkey_receiver), + true, + )); + + let sender_lock_before = + Lock::::get((coldkey_sender, netuid, hotkey)).expect("sender lock should exist"); + let sender_alpha_before = + SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_sender, netuid); + let receiver_alpha_before = + SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_receiver, netuid); + + assert_noop!( + SubtensorModule::do_transfer_stake( + RuntimeOrigin::signed(coldkey_sender), + coldkey_receiver, + hotkey, + netuid, + netuid, + total, + ), + Error::::AccountRejectsLockedAlpha + ); + + assert_eq!( + Lock::::get((coldkey_sender, netuid, hotkey)), + Some(sender_lock_before) + ); + assert!(Lock::::get((coldkey_receiver, netuid, hotkey)).is_none()); + assert_eq!( + SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_sender, netuid), + sender_alpha_before + ); + assert_eq!( + SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_receiver, netuid), + receiver_alpha_before + ); + }); +} + +#[test] +fn test_do_transfer_stake_allows_unlocked_alpha_to_flagged_destination() { + new_test_ext(1).execute_with(|| { + let coldkey_sender = U256::from(1); + let coldkey_receiver = U256::from(5); + let hotkey = U256::from(2); + let netuid = setup_subnet_with_stake(coldkey_sender, hotkey, 100_000_000_000); + + let total = SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_sender, netuid); + let lock_half = total / 2.into(); + assert_ok!(SubtensorModule::do_lock_stake( + &coldkey_sender, + netuid, + &hotkey, + lock_half, + )); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(coldkey_receiver), + true, + )); + + let unlocked_transfer = lock_half / 2.into(); + assert_ok!(SubtensorModule::do_transfer_stake( + RuntimeOrigin::signed(coldkey_sender), + coldkey_receiver, + hotkey, + netuid, + netuid, + unlocked_transfer, + )); + + assert!(Lock::::get((coldkey_receiver, netuid, hotkey)).is_none()); + assert_eq!( + SubtensorModule::total_coldkey_alpha_on_subnet(&coldkey_receiver, netuid), + unlocked_transfer + ); + }); +} + #[test] fn test_transfer_stake_cross_coldkey_allowed_partial() { new_test_ext(1).execute_with(|| { @@ -3284,6 +3418,10 @@ fn test_coldkey_swap_swaps_lock() { &hotkey, 5000u64.into(), )); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(new_coldkey), + false, + )); // Perform coldkey swap assert_ok!(SubtensorModule::do_swap_coldkey(&old_coldkey, &new_coldkey)); @@ -3318,6 +3456,10 @@ fn test_coldkey_swap_lock_blocks_unstake() { &hotkey, total, )); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(new_coldkey), + false, + )); // Swap coldkey assert_ok!(SubtensorModule::do_swap_coldkey(&old_coldkey, &new_coldkey)); @@ -3362,6 +3504,7 @@ fn test_coldkey_swap_allows_destination_conviction_only_lock() { last_update: SubtensorModule::get_current_block_as_u64(), }, ); + DecayingLock::::insert(old_coldkey, netuid, false); SubtensorModule::insert_lock_state( &new_coldkey, netuid, @@ -3390,6 +3533,8 @@ fn test_coldkey_swap_allows_destination_conviction_only_lock() { assert_eq!(swapped_lock.locked_mass, AlphaBalance::ZERO); assert_eq!(swapped_lock.conviction, old_conviction); assert_eq!(Lock::::iter_prefix((new_coldkey, netuid)).count(), 2); + assert!(DecayingLock::::get(old_coldkey, netuid).is_none()); + assert_eq!(DecayingLock::::get(new_coldkey, netuid), Some(false)); }); } @@ -3452,6 +3597,52 @@ fn test_coldkey_swap_rejects_destination_lock() { }); } +#[test] +fn test_coldkey_swap_rejects_locked_alpha_to_flagged_destination() { + new_test_ext(1).execute_with(|| { + let old_coldkey = U256::from(1); + let new_coldkey = U256::from(10); + let old_hotkey = U256::from(2); + let netuid = subtensor_runtime_common::NetUid::from(1); + + let old_locked = AlphaBalance::from(7_000u64); + let old_conviction = U64F64::from_num(77); + + SubtensorModule::insert_lock_state( + &old_coldkey, + netuid, + &old_hotkey, + LockState { + locked_mass: old_locked, + conviction: old_conviction, + last_update: SubtensorModule::get_current_block_as_u64(), + }, + ); + DecayingLock::::insert(old_coldkey, netuid, false); + assert_ok!(SubtensorModule::set_reject_locked_alpha( + RuntimeOrigin::signed(new_coldkey), + true, + )); + + assert_noop!( + SubtensorModule::swap_coldkey_locks(&old_coldkey, &new_coldkey), + Error::::AccountRejectsLockedAlpha + ); + + let source_lock = Lock::::get((old_coldkey, netuid, old_hotkey)) + .expect("source lock should remain after failed transfer"); + assert_eq!(source_lock.locked_mass, old_locked); + assert_eq!(source_lock.conviction, old_conviction); + assert!( + Lock::::iter_prefix((new_coldkey, netuid)) + .next() + .is_none() + ); + assert_eq!(DecayingLock::::get(old_coldkey, netuid), Some(false)); + assert!(DecayingLock::::get(new_coldkey, netuid).is_none()); + }); +} + #[test] // The public coldkey swap extrinsic runs inside a storage layer, so a late failure rolls back the earlier writes. fn test_failed_coldkey_swap_extrinsic_rolls_back_state_changes() { diff --git a/pallets/subtensor/src/tests/networks.rs b/pallets/subtensor/src/tests/networks.rs index 4696507e2e..a967761ef5 100644 --- a/pallets/subtensor/src/tests/networks.rs +++ b/pallets/subtensor/src/tests/networks.rs @@ -406,6 +406,7 @@ fn dissolve_clears_all_per_subnet_storages() { PendingValidatorEmission::::insert(net, AlphaBalance::from(1)); PendingRootAlphaDivs::::insert(net, AlphaBalance::from(1)); PendingOwnerCut::::insert(net, AlphaBalance::from(1)); + MinerBurned::::insert(net, substrate_fixed::types::U96F32::from_num(1)); BlocksSinceLastStep::::insert(net, 1u64); LastMechansimStepBlock::::insert(net, 1u64); ServingRateLimit::::insert(net, 1u64); @@ -563,6 +564,7 @@ fn dissolve_clears_all_per_subnet_storages() { assert!(!PendingValidatorEmission::::contains_key(net)); assert!(!PendingRootAlphaDivs::::contains_key(net)); assert!(!PendingOwnerCut::::contains_key(net)); + assert!(!MinerBurned::::contains_key(net)); assert!(!BlocksSinceLastStep::::contains_key(net)); assert!(!LastMechansimStepBlock::::contains_key(net)); assert!(!ServingRateLimit::::contains_key(net)); diff --git a/pallets/subtensor/src/tests/subnet_emissions.rs b/pallets/subtensor/src/tests/subnet_emissions.rs index 4bb1aa4c75..61af8b0cc7 100644 --- a/pallets/subtensor/src/tests/subnet_emissions.rs +++ b/pallets/subtensor/src/tests/subnet_emissions.rs @@ -5,7 +5,7 @@ use alloc::{collections::BTreeMap, vec::Vec}; use approx::assert_abs_diff_eq; use sp_core::U256; use substrate_fixed::types::{I64F64, I96F32, U64F64, U96F32}; -use subtensor_runtime_common::{NetUid, TaoBalance}; +use subtensor_runtime_common::{AlphaBalance, NetUid, TaoBalance}; fn u64f64(x: f64) -> U64F64 { U64F64::from_num(x) @@ -151,6 +151,147 @@ fn inplace_pow_normalize_fractional_exponent() { }) } +/// Configure a dynamic subnet with a given EMA price and miner-burned proportion so +/// `get_shares` can be exercised. Also seeds a large root stake with full TAO weight so +/// that, with zero alpha issuance on the test subnets, `root_proportion` is 1 and the +/// root-proportion factor in `get_shares` is neutral (isolating the price/burn weighting). +fn set_price_and_burn(netuid: NetUid, price: f64, burned: f64) { + SubnetTAO::::insert( + NetUid::ROOT, + TaoBalance::from(1_000_000_000_000_000_000_u64), + ); + SubtensorModule::set_tao_weight(u64::MAX); + SubnetMechanism::::insert(netuid, 1); + SubnetMovingPrice::::insert(netuid, i96f32(price)); + MinerBurned::::insert(netuid, U96F32::from_num(burned)); +} + +/// With no miner emission burned anywhere, `get_shares` is exactly the price-based +/// share: e_i = p_i / sum(p_j). +#[test] +fn get_shares_no_burn_matches_price_shares() { + new_test_ext(1).execute_with(|| { + let n1 = NetUid::from(1); + let n2 = NetUid::from(2); + let n3 = NetUid::from(3); + set_price_and_burn(n1, 1.0, 0.0); + set_price_and_burn(n2, 2.0, 0.0); + set_price_and_burn(n3, 3.0, 0.0); + + let shares = SubtensorModule::get_shares(&[n1, n2, n3]); + let s1 = shares.get(&n1).unwrap().to_num::(); + let s2 = shares.get(&n2).unwrap().to_num::(); + let s3 = shares.get(&n3).unwrap().to_num::(); + + assert_abs_diff_eq!(s1, 1.0 / 6.0, epsilon = 1e-9); + assert_abs_diff_eq!(s2, 2.0 / 6.0, epsilon = 1e-9); + assert_abs_diff_eq!(s3, 3.0 / 6.0, epsilon = 1e-9); + assert_abs_diff_eq!(s1 + s2 + s3, 1.0, epsilon = 1e-9); + }); +} + +/// A partial burn reallocates emission away from the burning subnet and toward the +/// non-burning one, while shares still sum to 1. +#[test] +fn get_shares_partial_burn_reallocates_away_from_burner() { + new_test_ext(1).execute_with(|| { + let n1 = NetUid::from(1); + let n2 = NetUid::from(2); + // Equal prices so the price side is neutral; n1 burns 50% of its miner emission. + set_price_and_burn(n1, 1.0, 0.5); + set_price_and_burn(n2, 1.0, 0.0); + + // weighted: n1 = 0.5 * (1 - 0.5) = 0.25, n2 = 0.5 * 1 = 0.5; total = 0.75 + let shares = SubtensorModule::get_shares(&[n1, n2]); + let s1 = shares.get(&n1).unwrap().to_num::(); + let s2 = shares.get(&n2).unwrap().to_num::(); + + assert_abs_diff_eq!(s1, 1.0 / 3.0, epsilon = 1e-9); + assert_abs_diff_eq!(s2, 2.0 / 3.0, epsilon = 1e-9); + assert_abs_diff_eq!(s1 + s2, 1.0, epsilon = 1e-9); + assert!( + s2 > s1, + "non-burning subnet should receive more: s1={s1}, s2={s2}" + ); + }); +} + +/// A subnet burning 100% of its miner emission receives zero chain emission; the rest +/// goes entirely to the non-burning subnet. +#[test] +fn get_shares_full_burn_gets_zero_emission() { + new_test_ext(1).execute_with(|| { + let n1 = NetUid::from(1); + let n2 = NetUid::from(2); + set_price_and_burn(n1, 1.0, 1.0); + set_price_and_burn(n2, 1.0, 0.0); + + let shares = SubtensorModule::get_shares(&[n1, n2]); + let s1 = shares.get(&n1).unwrap().to_num::(); + let s2 = shares.get(&n2).unwrap().to_num::(); + + assert_abs_diff_eq!(s1, 0.0, epsilon = 1e-9); + assert_abs_diff_eq!(s2, 1.0, epsilon = 1e-9); + }); +} + +/// When every subnet burns all of its miner emission, the reweighting would zero the +/// total, so `get_shares` falls back to unweighted price shares (emission is not +/// stranded). +#[test] +fn get_shares_all_full_burn_falls_back_to_price_shares() { + new_test_ext(1).execute_with(|| { + let n1 = NetUid::from(1); + let n2 = NetUid::from(2); + set_price_and_burn(n1, 1.0, 1.0); + set_price_and_burn(n2, 3.0, 1.0); + + let shares = SubtensorModule::get_shares(&[n1, n2]); + let s1 = shares.get(&n1).unwrap().to_num::(); + let s2 = shares.get(&n2).unwrap().to_num::(); + + // Fallback: price-proportional (1:3), not zeroed. + assert_abs_diff_eq!(s1, 1.0 / 4.0, epsilon = 1e-9); + assert_abs_diff_eq!(s2, 3.0 / 4.0, epsilon = 1e-9); + assert_abs_diff_eq!(s1 + s2, 1.0, epsilon = 1e-9); + }); +} + +/// With equal price and no burn, the root_proportion factor reallocates emission toward +/// the newer subnet (lower alpha issuance => higher root_proportion) and away from the +/// older one (higher alpha issuance => lower root_proportion). +#[test] +fn get_shares_root_proportion_favors_newer_subnets() { + new_test_ext(1).execute_with(|| { + let n1 = NetUid::from(1); + let n2 = NetUid::from(2); + // Equal price, no burn; root proportion factor is the only differentiator. + set_price_and_burn(n1, 1.0, 0.0); + set_price_and_burn(n2, 1.0, 0.0); + + // tao_weight = 1.0 (u64::MAX), so tao_weight term = root_tao. Set root_tao = 1000 + // and per-subnet alpha issuance to make root_proportion deterministic: + // n1: issuance 1000 => root_prop = 1000 / (1000 + 1000) = 0.5 + // n2: issuance 3000 => root_prop = 1000 / (1000 + 3000) = 0.25 + SubnetTAO::::insert(NetUid::ROOT, TaoBalance::from(1_000_u64)); + SubnetAlphaOut::::insert(n1, AlphaBalance::from(1_000_u64)); + SubnetAlphaOut::::insert(n2, AlphaBalance::from(3_000_u64)); + + // weighted: n1 = 0.5(price) * 0.5(root) = 0.25, n2 = 0.5 * 0.25 = 0.125; total 0.375 + let shares = SubtensorModule::get_shares(&[n1, n2]); + let s1 = shares.get(&n1).unwrap().to_num::(); + let s2 = shares.get(&n2).unwrap().to_num::(); + + assert_abs_diff_eq!(s1, 2.0 / 3.0, epsilon = 1e-6); + assert_abs_diff_eq!(s2, 1.0 / 3.0, epsilon = 1e-6); + assert_abs_diff_eq!(s1 + s2, 1.0, epsilon = 1e-9); + assert!( + s1 > s2, + "newer subnet (higher root_prop) should get more: s1={s1}, s2={s2}" + ); + }); +} + // /// Normal (moderate, non-zero) EMA flows across 3 subnets. // /// Expect: shares sum to ~1 and are monotonic with flows. // #[test] diff --git a/pallets/subtensor/src/weights.rs b/pallets/subtensor/src/weights.rs index 7de33b4a4c..c36043d5f6 100644 --- a/pallets/subtensor/src/weights.rs +++ b/pallets/subtensor/src/weights.rs @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.hYIH73ZUrd +// --output=/tmp/tmp.cU3UNvMMf3 // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -185,8 +185,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1865` // Estimated: `6148` - // Minimum execution time: 343_840_000 picoseconds. - Weight::from_parts(349_872_000, 6148) + // Minimum execution time: 326_148_000 picoseconds. + Weight::from_parts(330_386_000, 6148) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(29_u64)) } @@ -228,8 +228,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `188820` // Estimated: `10327410` - // Minimum execution time: 15_317_357_000 picoseconds. - Weight::from_parts(15_513_610_000, 10327410) + // Minimum execution time: 14_933_071_000 picoseconds. + Weight::from_parts(15_246_145_000, 10327410) .saturating_add(T::DbWeight::get().reads(4112_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -299,8 +299,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2226` // Estimated: `8727` - // Minimum execution time: 639_698_000 picoseconds. - Weight::from_parts(664_064_000, 8727) + // Minimum execution time: 627_509_000 picoseconds. + Weight::from_parts(649_871_000, 8727) .saturating_add(T::DbWeight::get().reads(32_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -314,8 +314,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `713` // Estimated: `4178` - // Minimum execution time: 30_307_000 picoseconds. - Weight::from_parts(31_278_000, 4178) + // Minimum execution time: 30_817_000 picoseconds. + Weight::from_parts(31_769_000, 4178) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -329,8 +329,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `812` // Estimated: `4277` - // Minimum execution time: 28_262_000 picoseconds. - Weight::from_parts(29_294_000, 4277) + // Minimum execution time: 28_503_000 picoseconds. + Weight::from_parts(29_475_000, 4277) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -412,8 +412,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1798` // Estimated: `6148` - // Minimum execution time: 332_358_000 picoseconds. - Weight::from_parts(336_815_000, 6148) + // Minimum execution time: 327_380_000 picoseconds. + Weight::from_parts(331_367_000, 6148) .saturating_add(T::DbWeight::get().reads(34_u64)) .saturating_add(T::DbWeight::get().writes(29_u64)) } @@ -465,8 +465,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1516` // Estimated: `4981` - // Minimum execution time: 102_089_000 picoseconds. - Weight::from_parts(103_934_000, 4981) + // Minimum execution time: 101_559_000 picoseconds. + Weight::from_parts(102_911_000, 4981) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -586,8 +586,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1532` // Estimated: `9947` - // Minimum execution time: 271_405_000 picoseconds. - Weight::from_parts(277_125_000, 9947) + // Minimum execution time: 270_073_000 picoseconds. + Weight::from_parts(277_638_000, 9947) .saturating_add(T::DbWeight::get().reads(40_u64)) .saturating_add(T::DbWeight::get().writes(48_u64)) } @@ -621,8 +621,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1249` // Estimated: `4714` - // Minimum execution time: 67_886_000 picoseconds. - Weight::from_parts(69_049_000, 4714) + // Minimum execution time: 67_746_000 picoseconds. + Weight::from_parts(69_860_000, 4714) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -668,8 +668,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 109_534_000 picoseconds. - Weight::from_parts(111_227_000, 7590) + // Minimum execution time: 110_316_000 picoseconds. + Weight::from_parts(111_748_000, 7590) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -679,8 +679,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_570_000 picoseconds. - Weight::from_parts(5_760_000, 0) + // Minimum execution time: 5_540_000 picoseconds. + Weight::from_parts(5_781_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -701,8 +701,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1033` // Estimated: `4498` - // Minimum execution time: 52_527_000 picoseconds. - Weight::from_parts(53_870_000, 4498) + // Minimum execution time: 52_037_000 picoseconds. + Weight::from_parts(52_958_000, 4498) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -718,8 +718,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 45_574_000 picoseconds. - Weight::from_parts(47_248_000, 4159) + // Minimum execution time: 45_806_000 picoseconds. + Weight::from_parts(46_356_000, 4159) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -757,6 +757,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::AccountFlags` (r:1 w:0) + /// Proof: `SubtensorModule::AccountFlags` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) @@ -767,9 +769,9 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2110` // Estimated: `13000` - // Minimum execution time: 284_379_000 picoseconds. - Weight::from_parts(288_156_000, 13000) - .saturating_add(T::DbWeight::get().reads(37_u64)) + // Minimum execution time: 282_877_000 picoseconds. + Weight::from_parts(286_614_000, 13000) + .saturating_add(T::DbWeight::get().reads(38_u64)) .saturating_add(T::DbWeight::get().writes(15_u64)) } /// Storage: `System::Account` (r:2 w:2) @@ -808,6 +810,8 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::AccountFlags` (r:1 w:0) + /// Proof: `SubtensorModule::AccountFlags` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:0 w:1) @@ -820,9 +824,9 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2166` // Estimated: `13056` - // Minimum execution time: 308_323_000 picoseconds. - Weight::from_parts(312_301_000, 13056) - .saturating_add(T::DbWeight::get().reads(37_u64)) + // Minimum execution time: 316_098_000 picoseconds. + Weight::from_parts(319_104_000, 13056) + .saturating_add(T::DbWeight::get().reads(38_u64)) .saturating_add(T::DbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:1 w:0) @@ -833,8 +837,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_442_000 picoseconds. - Weight::from_parts(23_293_000, 4130) + // Minimum execution time: 22_602_000 picoseconds. + Weight::from_parts(23_373_000, 4130) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -846,8 +850,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_695_000 picoseconds. - Weight::from_parts(19_496_000, 4078) + // Minimum execution time: 18_154_000 picoseconds. + Weight::from_parts(18_995_000, 4078) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -859,8 +863,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_335_000 picoseconds. - Weight::from_parts(8_857_000, 0) + // Minimum execution time: 8_546_000 picoseconds. + Weight::from_parts(9_107_000, 0) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -905,8 +909,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2155` // Estimated: `8095` - // Minimum execution time: 412_226_000 picoseconds. - Weight::from_parts(421_363_000, 8095) + // Minimum execution time: 409_853_000 picoseconds. + Weight::from_parts(428_318_000, 8095) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -940,8 +944,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1754` // Estimated: `5219` - // Minimum execution time: 169_976_000 picoseconds. - Weight::from_parts(172_139_000, 5219) + // Minimum execution time: 171_559_000 picoseconds. + Weight::from_parts(173_743_000, 5219) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -973,8 +977,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1754` // Estimated: `5219` - // Minimum execution time: 166_359_000 picoseconds. - Weight::from_parts(168_964_000, 5219) + // Minimum execution time: 167_031_000 picoseconds. + Weight::from_parts(169_686_000, 5219) .saturating_add(T::DbWeight::get().reads(12_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -994,8 +998,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_482_000 picoseconds. - Weight::from_parts(39_454_000, 4583) + // Minimum execution time: 38_121_000 picoseconds. + Weight::from_parts(38_972_000, 4583) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1065,8 +1069,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2226` // Estimated: `8727` - // Minimum execution time: 829_031_000 picoseconds. - Weight::from_parts(853_005_000, 8727) + // Minimum execution time: 832_551_000 picoseconds. + Weight::from_parts(851_326_000, 8727) .saturating_add(T::DbWeight::get().reads(32_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -1102,8 +1106,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1979` // Estimated: `7919` - // Minimum execution time: 214_819_000 picoseconds. - Weight::from_parts(216_061_000, 7919) + // Minimum execution time: 212_987_000 picoseconds. + Weight::from_parts(217_515_000, 7919) .saturating_add(T::DbWeight::get().reads(19_u64)) .saturating_add(T::DbWeight::get().writes(7_u64)) } @@ -1159,8 +1163,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2142` // Estimated: `10557` - // Minimum execution time: 544_281_000 picoseconds. - Weight::from_parts(569_198_000, 10557) + // Minimum execution time: 529_496_000 picoseconds. + Weight::from_parts(539_615_000, 10557) .saturating_add(T::DbWeight::get().reads(28_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -1214,8 +1218,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2176` // Estimated: `10591` - // Minimum execution time: 717_343_000 picoseconds. - Weight::from_parts(740_696_000, 10591) + // Minimum execution time: 693_783_000 picoseconds. + Weight::from_parts(715_854_000, 10591) .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -1287,8 +1291,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2662` // Estimated: `11077` - // Minimum execution time: 921_853_000 picoseconds. - Weight::from_parts(944_515_000, 11077) + // Minimum execution time: 909_094_000 picoseconds. + Weight::from_parts(916_638_000, 11077) .saturating_add(T::DbWeight::get().reads(47_u64)) .saturating_add(T::DbWeight::get().writes(24_u64)) } @@ -1328,8 +1332,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1988` // Estimated: `7928` - // Minimum execution time: 263_199_000 picoseconds. - Weight::from_parts(269_320_000, 7928) + // Minimum execution time: 244_335_000 picoseconds. + Weight::from_parts(257_741_000, 7928) .saturating_add(T::DbWeight::get().reads(18_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -1401,8 +1405,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2505` // Estimated: `10920` - // Minimum execution time: 717_052_000 picoseconds. - Weight::from_parts(742_019_000, 10920) + // Minimum execution time: 709_802_000 picoseconds. + Weight::from_parts(733_507_000, 10920) .saturating_add(T::DbWeight::get().reads(47_u64)) .saturating_add(T::DbWeight::get().writes(24_u64)) } @@ -1440,8 +1444,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1300` // Estimated: `4765` - // Minimum execution time: 144_628_000 picoseconds. - Weight::from_parts(147_224_000, 4765) + // Minimum execution time: 145_021_000 picoseconds. + Weight::from_parts(167_262_000, 4765) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1481,8 +1485,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1455` // Estimated: `7395` - // Minimum execution time: 100_516_000 picoseconds. - Weight::from_parts(103_092_000, 7395) + // Minimum execution time: 100_648_000 picoseconds. + Weight::from_parts(102_120_000, 7395) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1498,8 +1502,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `830` // Estimated: `4295` - // Minimum execution time: 29_324_000 picoseconds. - Weight::from_parts(29_895_000, 4295) + // Minimum execution time: 29_365_000 picoseconds. + Weight::from_parts(29_926_000, 4295) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1517,8 +1521,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `923` // Estimated: `4388` - // Minimum execution time: 36_257_000 picoseconds. - Weight::from_parts(37_710_000, 4388) + // Minimum execution time: 36_037_000 picoseconds. + Weight::from_parts(37_300_000, 4388) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -1638,8 +1642,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1468` // Estimated: `9883` - // Minimum execution time: 270_502_000 picoseconds. - Weight::from_parts(275_041_000, 9883) + // Minimum execution time: 270_775_000 picoseconds. + Weight::from_parts(280_263_000, 9883) .saturating_add(T::DbWeight::get().reads(39_u64)) .saturating_add(T::DbWeight::get().writes(47_u64)) } @@ -1653,8 +1657,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `684` // Estimated: `4149` - // Minimum execution time: 29_786_000 picoseconds. - Weight::from_parts(30_617_000, 4149) + // Minimum execution time: 30_457_000 picoseconds. + Weight::from_parts(31_398_000, 4149) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1668,8 +1672,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `889` // Estimated: `6829` - // Minimum execution time: 31_168_000 picoseconds. - Weight::from_parts(32_040_000, 6829) + // Minimum execution time: 31_649_000 picoseconds. + Weight::from_parts(33_061_000, 6829) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1681,8 +1685,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_122_000 picoseconds. - Weight::from_parts(17_513_000, 4060) + // Minimum execution time: 18_064_000 picoseconds. + Weight::from_parts(18_675_000, 4060) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -1764,8 +1768,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3172` // Estimated: `28912` - // Minimum execution time: 1_227_100_000 picoseconds. - Weight::from_parts(1_242_038_000, 28912) + // Minimum execution time: 1_221_957_000 picoseconds. + Weight::from_parts(1_230_412_000, 28912) .saturating_add(T::DbWeight::get().reads(182_u64)) .saturating_add(T::DbWeight::get().writes(99_u64)) } @@ -1779,8 +1783,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `818` // Estimated: `4283` - // Minimum execution time: 24_556_000 picoseconds. - Weight::from_parts(25_337_000, 4283) + // Minimum execution time: 24_866_000 picoseconds. + Weight::from_parts(25_508_000, 4283) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -1794,8 +1798,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `774` // Estimated: `9189` - // Minimum execution time: 25_918_000 picoseconds. - Weight::from_parts(26_830_000, 9189) + // Minimum execution time: 26_860_000 picoseconds. + Weight::from_parts(27_522_000, 9189) .saturating_add(T::DbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -1856,8 +1860,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2235` // Estimated: `11306` - // Minimum execution time: 674_042_000 picoseconds. - Weight::from_parts(700_873_000, 11306) + // Minimum execution time: 667_584_000 picoseconds. + Weight::from_parts(692_290_000, 11306) .saturating_add(T::DbWeight::get().reads(43_u64)) .saturating_add(T::DbWeight::get().writes(25_u64)) } @@ -1911,8 +1915,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2176` // Estimated: `10591` - // Minimum execution time: 731_620_000 picoseconds. - Weight::from_parts(754_292_000, 10591) + // Minimum execution time: 722_727_000 picoseconds. + Weight::from_parts(746_281_000, 10591) .saturating_add(T::DbWeight::get().reads(27_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -2051,10 +2055,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1835 + k * (44 ±0)` // Estimated: `10256 + k * (2579 ±0)` - // Minimum execution time: 475_774_000 picoseconds. - Weight::from_parts(309_598_986, 10256) - // Standard Error: 26_969 - .saturating_add(Weight::from_parts(46_027_026, 0).saturating_mul(k.into())) + // Minimum execution time: 480_665_000 picoseconds. + Weight::from_parts(290_059_172, 10256) + // Standard Error: 59_736 + .saturating_add(Weight::from_parts(47_135_675, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(49_u64)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes(53_u64)) @@ -2084,10 +2088,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1501 + k * (53 ±0)` // Estimated: `6148 + k * (2529 ±0)` - // Minimum execution time: 127_077_000 picoseconds. - Weight::from_parts(146_402_779, 6148) - // Standard Error: 3_377 - .saturating_add(Weight::from_parts(1_566_532, 0).saturating_mul(k.into())) + // Minimum execution time: 126_435_000 picoseconds. + Weight::from_parts(174_697_948, 6148) + // Standard Error: 7_302 + .saturating_add(Weight::from_parts(1_407_793, 0).saturating_mul(k.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(T::DbWeight::get().writes(7_u64)) @@ -2102,8 +2106,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 27_300_000 picoseconds. - Weight::from_parts(28_313_000, 9074) + // Minimum execution time: 27_611_000 picoseconds. + Weight::from_parts(28_353_000, 9074) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2139,8 +2143,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1248` // Estimated: `4713` - // Minimum execution time: 85_228_000 picoseconds. - Weight::from_parts(86_951_000, 4713) + // Minimum execution time: 84_177_000 picoseconds. + Weight::from_parts(86_050_000, 4713) .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2156,8 +2160,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 32_871_000 picoseconds. - Weight::from_parts(33_853_000, 4274) + // Minimum execution time: 32_651_000 picoseconds. + Weight::from_parts(33_663_000, 4274) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2173,8 +2177,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `476` // Estimated: `3941` - // Minimum execution time: 17_463_000 picoseconds. - Weight::from_parts(18_283_000, 3941) + // Minimum execution time: 17_693_000 picoseconds. + Weight::from_parts(18_575_000, 3941) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2202,10 +2206,10 @@ impl WeightInfo for SubstrateWeight { /// Proof: `SubtensorModule::RootClaimableThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_root() -> Weight { // Proof Size summary in bytes: - // Measured: `1935` - // Estimated: `7875` - // Minimum execution time: 136_093_000 picoseconds. - Weight::from_parts(138_999_000, 7875) + // Measured: `1969` + // Estimated: `7909` + // Minimum execution time: 136_795_000 picoseconds. + Weight::from_parts(138_218_000, 7909) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -2215,8 +2219,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_545_000 picoseconds. - Weight::from_parts(2_735_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_945_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -2225,8 +2229,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_229_000 picoseconds. - Weight::from_parts(5_681_000, 0) + // Minimum execution time: 5_380_000 picoseconds. + Weight::from_parts(5_931_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -2239,8 +2243,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `899` // Estimated: `4364` - // Minimum execution time: 26_870_000 picoseconds. - Weight::from_parts(28_023_000, 4364) + // Minimum execution time: 27_391_000 picoseconds. + Weight::from_parts(28_232_000, 4364) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2312,8 +2316,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2229` // Estimated: `8727` - // Minimum execution time: 945_077_000 picoseconds. - Weight::from_parts(967_308_000, 8727) + // Minimum execution time: 914_675_000 picoseconds. + Weight::from_parts(941_434_000, 8727) .saturating_add(T::DbWeight::get().reads(33_u64)) .saturating_add(T::DbWeight::get().writes(17_u64)) } @@ -2323,8 +2327,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_585_000 picoseconds. - Weight::from_parts(2_805_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_846_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -2365,8 +2369,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1715` // Estimated: `7655` - // Minimum execution time: 114_744_000 picoseconds. - Weight::from_parts(115_995_000, 7655) + // Minimum execution time: 115_725_000 picoseconds. + Weight::from_parts(117_409_000, 7655) .saturating_add(T::DbWeight::get().reads(17_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -2396,8 +2400,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1399` // Estimated: `7339` - // Minimum execution time: 147_815_000 picoseconds. - Weight::from_parts(149_819_000, 7339) + // Minimum execution time: 148_597_000 picoseconds. + Weight::from_parts(151_101_000, 7339) .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -2411,8 +2415,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `950` // Estimated: `4415` - // Minimum execution time: 665_186_000 picoseconds. - Weight::from_parts(684_242_000, 4415) + // Minimum execution time: 662_675_000 picoseconds. + Weight::from_parts(683_053_000, 4415) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -2432,8 +2436,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `975` // Estimated: `4440` - // Minimum execution time: 45_394_000 picoseconds. - Weight::from_parts(46_407_000, 4440) + // Minimum execution time: 44_473_000 picoseconds. + Weight::from_parts(45_765_000, 4440) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } @@ -2457,8 +2461,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `899` // Estimated: `4364` - // Minimum execution time: 38_362_000 picoseconds. - Weight::from_parts(39_193_000, 4364) + // Minimum execution time: 36_959_000 picoseconds. + Weight::from_parts(38_813_000, 4364) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2482,8 +2486,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `982` // Estimated: `4447` - // Minimum execution time: 41_588_000 picoseconds. - Weight::from_parts(42_539_000, 4447) + // Minimum execution time: 40_996_000 picoseconds. + Weight::from_parts(42_309_000, 4447) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2495,8 +2499,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 16_832_000 picoseconds. - Weight::from_parts(17_583_000, 4198) + // Minimum execution time: 16_692_000 picoseconds. + Weight::from_parts(17_323_000, 4198) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) @@ -2523,8 +2527,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1731` // Estimated: `7671` - // Minimum execution time: 52_046_000 picoseconds. - Weight::from_parts(52_958_000, 7671) + // Minimum execution time: 51_526_000 picoseconds. + Weight::from_parts(53_510_000, 7671) .saturating_add(T::DbWeight::get().reads(11_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -2545,8 +2549,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1019` // Estimated: `4484` - // Minimum execution time: 34_995_000 picoseconds. - Weight::from_parts(35_376_000, 4484) + // Minimum execution time: 34_805_000 picoseconds. + Weight::from_parts(35_406_000, 4484) .saturating_add(T::DbWeight::get().reads(7_u64)) } /// Storage: `SubtensorModule::MinDelegateTake` (r:1 w:0) @@ -2559,8 +2563,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `721` // Estimated: `4186` - // Minimum execution time: 14_998_000 picoseconds. - Weight::from_parts(15_378_000, 4186) + // Minimum execution time: 14_928_000 picoseconds. + Weight::from_parts(15_449_000, 4186) .saturating_add(T::DbWeight::get().reads(3_u64)) } /// Storage: `SubtensorModule::Uids` (r:1 w:0) @@ -2573,8 +2577,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `647` // Estimated: `4112` - // Minimum execution time: 18_775_000 picoseconds. - Weight::from_parts(19_035_000, 4112) + // Minimum execution time: 18_394_000 picoseconds. + Weight::from_parts(18_905_000, 4112) .saturating_add(T::DbWeight::get().reads(3_u64)) } /// Storage: `SubtensorModule::Uids` (r:1 w:0) @@ -2585,8 +2589,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `652` // Estimated: `4117` - // Minimum execution time: 15_018_000 picoseconds. - Weight::from_parts(15_448_000, 4117) + // Minimum execution time: 14_918_000 picoseconds. + Weight::from_parts(15_369_000, 4117) .saturating_add(T::DbWeight::get().reads(2_u64)) } } @@ -2671,8 +2675,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1865` // Estimated: `6148` - // Minimum execution time: 343_840_000 picoseconds. - Weight::from_parts(349_872_000, 6148) + // Minimum execution time: 326_148_000 picoseconds. + Weight::from_parts(330_386_000, 6148) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(29_u64)) } @@ -2714,8 +2718,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `188820` // Estimated: `10327410` - // Minimum execution time: 15_317_357_000 picoseconds. - Weight::from_parts(15_513_610_000, 10327410) + // Minimum execution time: 14_933_071_000 picoseconds. + Weight::from_parts(15_246_145_000, 10327410) .saturating_add(RocksDbWeight::get().reads(4112_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -2785,8 +2789,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2226` // Estimated: `8727` - // Minimum execution time: 639_698_000 picoseconds. - Weight::from_parts(664_064_000, 8727) + // Minimum execution time: 627_509_000 picoseconds. + Weight::from_parts(649_871_000, 8727) .saturating_add(RocksDbWeight::get().reads(32_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -2800,8 +2804,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `713` // Estimated: `4178` - // Minimum execution time: 30_307_000 picoseconds. - Weight::from_parts(31_278_000, 4178) + // Minimum execution time: 30_817_000 picoseconds. + Weight::from_parts(31_769_000, 4178) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2815,8 +2819,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `812` // Estimated: `4277` - // Minimum execution time: 28_262_000 picoseconds. - Weight::from_parts(29_294_000, 4277) + // Minimum execution time: 28_503_000 picoseconds. + Weight::from_parts(29_475_000, 4277) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -2898,8 +2902,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1798` // Estimated: `6148` - // Minimum execution time: 332_358_000 picoseconds. - Weight::from_parts(336_815_000, 6148) + // Minimum execution time: 327_380_000 picoseconds. + Weight::from_parts(331_367_000, 6148) .saturating_add(RocksDbWeight::get().reads(34_u64)) .saturating_add(RocksDbWeight::get().writes(29_u64)) } @@ -2951,8 +2955,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1516` // Estimated: `4981` - // Minimum execution time: 102_089_000 picoseconds. - Weight::from_parts(103_934_000, 4981) + // Minimum execution time: 101_559_000 picoseconds. + Weight::from_parts(102_911_000, 4981) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -3072,8 +3076,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1532` // Estimated: `9947` - // Minimum execution time: 271_405_000 picoseconds. - Weight::from_parts(277_125_000, 9947) + // Minimum execution time: 270_073_000 picoseconds. + Weight::from_parts(277_638_000, 9947) .saturating_add(RocksDbWeight::get().reads(40_u64)) .saturating_add(RocksDbWeight::get().writes(48_u64)) } @@ -3107,8 +3111,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1249` // Estimated: `4714` - // Minimum execution time: 67_886_000 picoseconds. - Weight::from_parts(69_049_000, 4714) + // Minimum execution time: 67_746_000 picoseconds. + Weight::from_parts(69_860_000, 4714) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3154,8 +3158,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1650` // Estimated: `7590` - // Minimum execution time: 109_534_000 picoseconds. - Weight::from_parts(111_227_000, 7590) + // Minimum execution time: 110_316_000 picoseconds. + Weight::from_parts(111_748_000, 7590) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3165,8 +3169,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_570_000 picoseconds. - Weight::from_parts(5_760_000, 0) + // Minimum execution time: 5_540_000 picoseconds. + Weight::from_parts(5_781_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -3187,8 +3191,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1033` // Estimated: `4498` - // Minimum execution time: 52_527_000 picoseconds. - Weight::from_parts(53_870_000, 4498) + // Minimum execution time: 52_037_000 picoseconds. + Weight::from_parts(52_958_000, 4498) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3204,8 +3208,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `694` // Estimated: `4159` - // Minimum execution time: 45_574_000 picoseconds. - Weight::from_parts(47_248_000, 4159) + // Minimum execution time: 45_806_000 picoseconds. + Weight::from_parts(46_356_000, 4159) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -3243,6 +3247,8 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::AccountFlags` (r:1 w:0) + /// Proof: `SubtensorModule::AccountFlags` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `System::Account` (r:2 w:2) @@ -3253,9 +3259,9 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2110` // Estimated: `13000` - // Minimum execution time: 284_379_000 picoseconds. - Weight::from_parts(288_156_000, 13000) - .saturating_add(RocksDbWeight::get().reads(37_u64)) + // Minimum execution time: 282_877_000 picoseconds. + Weight::from_parts(286_614_000, 13000) + .saturating_add(RocksDbWeight::get().reads(38_u64)) .saturating_add(RocksDbWeight::get().writes(15_u64)) } /// Storage: `System::Account` (r:2 w:2) @@ -3294,6 +3300,8 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::MaturityRate` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::Lock` (r:2 w:0) /// Proof: `SubtensorModule::Lock` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `SubtensorModule::AccountFlags` (r:1 w:0) + /// Proof: `SubtensorModule::AccountFlags` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::DecayingLock` (r:1 w:0) /// Proof: `SubtensorModule::DecayingLock` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:0 w:1) @@ -3306,9 +3314,9 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2166` // Estimated: `13056` - // Minimum execution time: 308_323_000 picoseconds. - Weight::from_parts(312_301_000, 13056) - .saturating_add(RocksDbWeight::get().reads(37_u64)) + // Minimum execution time: 316_098_000 picoseconds. + Weight::from_parts(319_104_000, 13056) + .saturating_add(RocksDbWeight::get().reads(38_u64)) .saturating_add(RocksDbWeight::get().writes(19_u64)) } /// Storage: `SubtensorModule::ColdkeySwapAnnouncements` (r:1 w:0) @@ -3319,8 +3327,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `665` // Estimated: `4130` - // Minimum execution time: 22_442_000 picoseconds. - Weight::from_parts(23_293_000, 4130) + // Minimum execution time: 22_602_000 picoseconds. + Weight::from_parts(23_373_000, 4130) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3332,8 +3340,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `613` // Estimated: `4078` - // Minimum execution time: 18_695_000 picoseconds. - Weight::from_parts(19_496_000, 4078) + // Minimum execution time: 18_154_000 picoseconds. + Weight::from_parts(18_995_000, 4078) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -3345,8 +3353,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 8_335_000 picoseconds. - Weight::from_parts(8_857_000, 0) + // Minimum execution time: 8_546_000 picoseconds. + Weight::from_parts(9_107_000, 0) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -3391,8 +3399,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2155` // Estimated: `8095` - // Minimum execution time: 412_226_000 picoseconds. - Weight::from_parts(421_363_000, 8095) + // Minimum execution time: 409_853_000 picoseconds. + Weight::from_parts(428_318_000, 8095) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3426,8 +3434,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1754` // Estimated: `5219` - // Minimum execution time: 169_976_000 picoseconds. - Weight::from_parts(172_139_000, 5219) + // Minimum execution time: 171_559_000 picoseconds. + Weight::from_parts(173_743_000, 5219) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3459,8 +3467,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1754` // Estimated: `5219` - // Minimum execution time: 166_359_000 picoseconds. - Weight::from_parts(168_964_000, 5219) + // Minimum execution time: 167_031_000 picoseconds. + Weight::from_parts(169_686_000, 5219) .saturating_add(RocksDbWeight::get().reads(12_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -3480,8 +3488,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1118` // Estimated: `4583` - // Minimum execution time: 38_482_000 picoseconds. - Weight::from_parts(39_454_000, 4583) + // Minimum execution time: 38_121_000 picoseconds. + Weight::from_parts(38_972_000, 4583) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3551,8 +3559,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2226` // Estimated: `8727` - // Minimum execution time: 829_031_000 picoseconds. - Weight::from_parts(853_005_000, 8727) + // Minimum execution time: 832_551_000 picoseconds. + Weight::from_parts(851_326_000, 8727) .saturating_add(RocksDbWeight::get().reads(32_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -3588,8 +3596,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1979` // Estimated: `7919` - // Minimum execution time: 214_819_000 picoseconds. - Weight::from_parts(216_061_000, 7919) + // Minimum execution time: 212_987_000 picoseconds. + Weight::from_parts(217_515_000, 7919) .saturating_add(RocksDbWeight::get().reads(19_u64)) .saturating_add(RocksDbWeight::get().writes(7_u64)) } @@ -3645,8 +3653,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2142` // Estimated: `10557` - // Minimum execution time: 544_281_000 picoseconds. - Weight::from_parts(569_198_000, 10557) + // Minimum execution time: 529_496_000 picoseconds. + Weight::from_parts(539_615_000, 10557) .saturating_add(RocksDbWeight::get().reads(28_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -3700,8 +3708,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2176` // Estimated: `10591` - // Minimum execution time: 717_343_000 picoseconds. - Weight::from_parts(740_696_000, 10591) + // Minimum execution time: 693_783_000 picoseconds. + Weight::from_parts(715_854_000, 10591) .saturating_add(RocksDbWeight::get().reads(27_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -3773,8 +3781,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2662` // Estimated: `11077` - // Minimum execution time: 921_853_000 picoseconds. - Weight::from_parts(944_515_000, 11077) + // Minimum execution time: 909_094_000 picoseconds. + Weight::from_parts(916_638_000, 11077) .saturating_add(RocksDbWeight::get().reads(47_u64)) .saturating_add(RocksDbWeight::get().writes(24_u64)) } @@ -3814,8 +3822,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1988` // Estimated: `7928` - // Minimum execution time: 263_199_000 picoseconds. - Weight::from_parts(269_320_000, 7928) + // Minimum execution time: 244_335_000 picoseconds. + Weight::from_parts(257_741_000, 7928) .saturating_add(RocksDbWeight::get().reads(18_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -3887,8 +3895,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2505` // Estimated: `10920` - // Minimum execution time: 717_052_000 picoseconds. - Weight::from_parts(742_019_000, 10920) + // Minimum execution time: 709_802_000 picoseconds. + Weight::from_parts(733_507_000, 10920) .saturating_add(RocksDbWeight::get().reads(47_u64)) .saturating_add(RocksDbWeight::get().writes(24_u64)) } @@ -3926,8 +3934,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1300` // Estimated: `4765` - // Minimum execution time: 144_628_000 picoseconds. - Weight::from_parts(147_224_000, 4765) + // Minimum execution time: 145_021_000 picoseconds. + Weight::from_parts(167_262_000, 4765) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3967,8 +3975,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1455` // Estimated: `7395` - // Minimum execution time: 100_516_000 picoseconds. - Weight::from_parts(103_092_000, 7395) + // Minimum execution time: 100_648_000 picoseconds. + Weight::from_parts(102_120_000, 7395) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -3984,8 +3992,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `830` // Estimated: `4295` - // Minimum execution time: 29_324_000 picoseconds. - Weight::from_parts(29_895_000, 4295) + // Minimum execution time: 29_365_000 picoseconds. + Weight::from_parts(29_926_000, 4295) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4003,8 +4011,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `923` // Estimated: `4388` - // Minimum execution time: 36_257_000 picoseconds. - Weight::from_parts(37_710_000, 4388) + // Minimum execution time: 36_037_000 picoseconds. + Weight::from_parts(37_300_000, 4388) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4124,8 +4132,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1468` // Estimated: `9883` - // Minimum execution time: 270_502_000 picoseconds. - Weight::from_parts(275_041_000, 9883) + // Minimum execution time: 270_775_000 picoseconds. + Weight::from_parts(280_263_000, 9883) .saturating_add(RocksDbWeight::get().reads(39_u64)) .saturating_add(RocksDbWeight::get().writes(47_u64)) } @@ -4139,8 +4147,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `684` // Estimated: `4149` - // Minimum execution time: 29_786_000 picoseconds. - Weight::from_parts(30_617_000, 4149) + // Minimum execution time: 30_457_000 picoseconds. + Weight::from_parts(31_398_000, 4149) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4154,8 +4162,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `889` // Estimated: `6829` - // Minimum execution time: 31_168_000 picoseconds. - Weight::from_parts(32_040_000, 6829) + // Minimum execution time: 31_649_000 picoseconds. + Weight::from_parts(33_061_000, 6829) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4167,8 +4175,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `595` // Estimated: `4060` - // Minimum execution time: 17_122_000 picoseconds. - Weight::from_parts(17_513_000, 4060) + // Minimum execution time: 18_064_000 picoseconds. + Weight::from_parts(18_675_000, 4060) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4250,8 +4258,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3172` // Estimated: `28912` - // Minimum execution time: 1_227_100_000 picoseconds. - Weight::from_parts(1_242_038_000, 28912) + // Minimum execution time: 1_221_957_000 picoseconds. + Weight::from_parts(1_230_412_000, 28912) .saturating_add(RocksDbWeight::get().reads(182_u64)) .saturating_add(RocksDbWeight::get().writes(99_u64)) } @@ -4265,8 +4273,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `818` // Estimated: `4283` - // Minimum execution time: 24_556_000 picoseconds. - Weight::from_parts(25_337_000, 4283) + // Minimum execution time: 24_866_000 picoseconds. + Weight::from_parts(25_508_000, 4283) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -4280,8 +4288,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `774` // Estimated: `9189` - // Minimum execution time: 25_918_000 picoseconds. - Weight::from_parts(26_830_000, 9189) + // Minimum execution time: 26_860_000 picoseconds. + Weight::from_parts(27_522_000, 9189) .saturating_add(RocksDbWeight::get().reads(6_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4342,8 +4350,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2235` // Estimated: `11306` - // Minimum execution time: 674_042_000 picoseconds. - Weight::from_parts(700_873_000, 11306) + // Minimum execution time: 667_584_000 picoseconds. + Weight::from_parts(692_290_000, 11306) .saturating_add(RocksDbWeight::get().reads(43_u64)) .saturating_add(RocksDbWeight::get().writes(25_u64)) } @@ -4397,8 +4405,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2176` // Estimated: `10591` - // Minimum execution time: 731_620_000 picoseconds. - Weight::from_parts(754_292_000, 10591) + // Minimum execution time: 722_727_000 picoseconds. + Weight::from_parts(746_281_000, 10591) .saturating_add(RocksDbWeight::get().reads(27_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -4537,10 +4545,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1835 + k * (44 ±0)` // Estimated: `10256 + k * (2579 ±0)` - // Minimum execution time: 475_774_000 picoseconds. - Weight::from_parts(309_598_986, 10256) - // Standard Error: 26_969 - .saturating_add(Weight::from_parts(46_027_026, 0).saturating_mul(k.into())) + // Minimum execution time: 480_665_000 picoseconds. + Weight::from_parts(290_059_172, 10256) + // Standard Error: 59_736 + .saturating_add(Weight::from_parts(47_135_675, 0).saturating_mul(k.into())) .saturating_add(RocksDbWeight::get().reads(49_u64)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(k.into()))) .saturating_add(RocksDbWeight::get().writes(53_u64)) @@ -4570,10 +4578,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1501 + k * (53 ±0)` // Estimated: `6148 + k * (2529 ±0)` - // Minimum execution time: 127_077_000 picoseconds. - Weight::from_parts(146_402_779, 6148) - // Standard Error: 3_377 - .saturating_add(Weight::from_parts(1_566_532, 0).saturating_mul(k.into())) + // Minimum execution time: 126_435_000 picoseconds. + Weight::from_parts(174_697_948, 6148) + // Standard Error: 7_302 + .saturating_add(Weight::from_parts(1_407_793, 0).saturating_mul(k.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(k.into()))) .saturating_add(RocksDbWeight::get().writes(7_u64)) @@ -4588,8 +4596,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `659` // Estimated: `9074` - // Minimum execution time: 27_300_000 picoseconds. - Weight::from_parts(28_313_000, 9074) + // Minimum execution time: 27_611_000 picoseconds. + Weight::from_parts(28_353_000, 9074) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4625,8 +4633,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1248` // Estimated: `4713` - // Minimum execution time: 85_228_000 picoseconds. - Weight::from_parts(86_951_000, 4713) + // Minimum execution time: 84_177_000 picoseconds. + Weight::from_parts(86_050_000, 4713) .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4642,8 +4650,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `809` // Estimated: `4274` - // Minimum execution time: 32_871_000 picoseconds. - Weight::from_parts(33_853_000, 4274) + // Minimum execution time: 32_651_000 picoseconds. + Weight::from_parts(33_663_000, 4274) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4659,8 +4667,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `476` // Estimated: `3941` - // Minimum execution time: 17_463_000 picoseconds. - Weight::from_parts(18_283_000, 3941) + // Minimum execution time: 17_693_000 picoseconds. + Weight::from_parts(18_575_000, 3941) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4688,10 +4696,10 @@ impl WeightInfo for () { /// Proof: `SubtensorModule::RootClaimableThreshold` (`max_values`: None, `max_size`: None, mode: `Measured`) fn claim_root() -> Weight { // Proof Size summary in bytes: - // Measured: `1935` - // Estimated: `7875` - // Minimum execution time: 136_093_000 picoseconds. - Weight::from_parts(138_999_000, 7875) + // Measured: `1969` + // Estimated: `7909` + // Minimum execution time: 136_795_000 picoseconds. + Weight::from_parts(138_218_000, 7909) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -4701,8 +4709,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_545_000 picoseconds. - Weight::from_parts(2_735_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_945_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::RootClaimableThreshold` (r:0 w:1) @@ -4711,8 +4719,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_229_000 picoseconds. - Weight::from_parts(5_681_000, 0) + // Minimum execution time: 5_380_000 picoseconds. + Weight::from_parts(5_931_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4725,8 +4733,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `899` // Estimated: `4364` - // Minimum execution time: 26_870_000 picoseconds. - Weight::from_parts(28_023_000, 4364) + // Minimum execution time: 27_391_000 picoseconds. + Weight::from_parts(28_232_000, 4364) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4798,8 +4806,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2229` // Estimated: `8727` - // Minimum execution time: 945_077_000 picoseconds. - Weight::from_parts(967_308_000, 8727) + // Minimum execution time: 914_675_000 picoseconds. + Weight::from_parts(941_434_000, 8727) .saturating_add(RocksDbWeight::get().reads(33_u64)) .saturating_add(RocksDbWeight::get().writes(17_u64)) } @@ -4809,8 +4817,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_585_000 picoseconds. - Weight::from_parts(2_805_000, 0) + // Minimum execution time: 2_745_000 picoseconds. + Weight::from_parts(2_846_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `SubtensorModule::Owner` (r:1 w:0) @@ -4851,8 +4859,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1715` // Estimated: `7655` - // Minimum execution time: 114_744_000 picoseconds. - Weight::from_parts(115_995_000, 7655) + // Minimum execution time: 115_725_000 picoseconds. + Weight::from_parts(117_409_000, 7655) .saturating_add(RocksDbWeight::get().reads(17_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -4882,8 +4890,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1399` // Estimated: `7339` - // Minimum execution time: 147_815_000 picoseconds. - Weight::from_parts(149_819_000, 7339) + // Minimum execution time: 148_597_000 picoseconds. + Weight::from_parts(151_101_000, 7339) .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -4897,8 +4905,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `950` // Estimated: `4415` - // Minimum execution time: 665_186_000 picoseconds. - Weight::from_parts(684_242_000, 4415) + // Minimum execution time: 662_675_000 picoseconds. + Weight::from_parts(683_053_000, 4415) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -4918,8 +4926,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `975` // Estimated: `4440` - // Minimum execution time: 45_394_000 picoseconds. - Weight::from_parts(46_407_000, 4440) + // Minimum execution time: 44_473_000 picoseconds. + Weight::from_parts(45_765_000, 4440) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } @@ -4943,8 +4951,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `899` // Estimated: `4364` - // Minimum execution time: 38_362_000 picoseconds. - Weight::from_parts(39_193_000, 4364) + // Minimum execution time: 36_959_000 picoseconds. + Weight::from_parts(38_813_000, 4364) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4968,8 +4976,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `982` // Estimated: `4447` - // Minimum execution time: 41_588_000 picoseconds. - Weight::from_parts(42_539_000, 4447) + // Minimum execution time: 40_996_000 picoseconds. + Weight::from_parts(42_309_000, 4447) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4981,8 +4989,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `733` // Estimated: `4198` - // Minimum execution time: 16_832_000 picoseconds. - Weight::from_parts(17_583_000, 4198) + // Minimum execution time: 16_692_000 picoseconds. + Weight::from_parts(17_323_000, 4198) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `SubtensorModule::SubnetOwnerHotkey` (r:1 w:0) @@ -5009,8 +5017,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1731` // Estimated: `7671` - // Minimum execution time: 52_046_000 picoseconds. - Weight::from_parts(52_958_000, 7671) + // Minimum execution time: 51_526_000 picoseconds. + Weight::from_parts(53_510_000, 7671) .saturating_add(RocksDbWeight::get().reads(11_u64)) } /// Storage: `SubtensorModule::CommitRevealWeightsEnabled` (r:1 w:0) @@ -5031,8 +5039,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1019` // Estimated: `4484` - // Minimum execution time: 34_995_000 picoseconds. - Weight::from_parts(35_376_000, 4484) + // Minimum execution time: 34_805_000 picoseconds. + Weight::from_parts(35_406_000, 4484) .saturating_add(RocksDbWeight::get().reads(7_u64)) } /// Storage: `SubtensorModule::MinDelegateTake` (r:1 w:0) @@ -5045,8 +5053,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `721` // Estimated: `4186` - // Minimum execution time: 14_998_000 picoseconds. - Weight::from_parts(15_378_000, 4186) + // Minimum execution time: 14_928_000 picoseconds. + Weight::from_parts(15_449_000, 4186) .saturating_add(RocksDbWeight::get().reads(3_u64)) } /// Storage: `SubtensorModule::Uids` (r:1 w:0) @@ -5059,8 +5067,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `647` // Estimated: `4112` - // Minimum execution time: 18_775_000 picoseconds. - Weight::from_parts(19_035_000, 4112) + // Minimum execution time: 18_394_000 picoseconds. + Weight::from_parts(18_905_000, 4112) .saturating_add(RocksDbWeight::get().reads(3_u64)) } /// Storage: `SubtensorModule::Uids` (r:1 w:0) @@ -5071,8 +5079,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `652` // Estimated: `4117` - // Minimum execution time: 15_018_000 picoseconds. - Weight::from_parts(15_448_000, 4117) + // Minimum execution time: 14_918_000 picoseconds. + Weight::from_parts(15_369_000, 4117) .saturating_add(RocksDbWeight::get().reads(2_u64)) } } diff --git a/pallets/utility/src/weights.rs b/pallets/utility/src/weights.rs index 928aef0269..d53d9ec80b 100644 --- a/pallets/utility/src/weights.rs +++ b/pallets/utility/src/weights.rs @@ -22,7 +22,7 @@ // --no-storage-info // --no-min-squares // --no-median-slopes -// --output=/tmp/tmp.5J6YDU3hE3 +// --output=/tmp/tmp.LQGKoNeRU5 // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -57,10 +57,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_638_000 picoseconds. - Weight::from_parts(19_446_696, 3983) - // Standard Error: 1_676 - .saturating_add(Weight::from_parts(5_450_264, 0).saturating_mul(c.into())) + // Minimum execution time: 5_099_000 picoseconds. + Weight::from_parts(19_831_182, 3983) + // Standard Error: 1_865 + .saturating_add(Weight::from_parts(5_629_167, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -71,8 +71,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 14_878_000 picoseconds. - Weight::from_parts(15_378_000, 3983) + // Minimum execution time: 15_068_000 picoseconds. + Weight::from_parts(15_619_000, 3983) .saturating_add(T::DbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -84,18 +84,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_588_000 picoseconds. - Weight::from_parts(13_428_230, 3983) - // Standard Error: 2_092 - .saturating_add(Weight::from_parts(5_663_250, 0).saturating_mul(c.into())) + // Minimum execution time: 5_030_000 picoseconds. + Weight::from_parts(16_388_597, 3983) + // Standard Error: 2_018 + .saturating_add(Weight::from_parts(5_828_632, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_542_000 picoseconds. - Weight::from_parts(6_893_000, 0) + // Minimum execution time: 7_024_000 picoseconds. + Weight::from_parts(7_324_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -106,18 +106,18 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_699_000 picoseconds. - Weight::from_parts(12_134_867, 3983) - // Standard Error: 3_490 - .saturating_add(Weight::from_parts(5_477_293, 0).saturating_mul(c.into())) + // Minimum execution time: 4_869_000 picoseconds. + Weight::from_parts(11_585_164, 3983) + // Standard Error: 4_216 + .saturating_add(Weight::from_parts(5_647_592, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) } fn dispatch_as_fallible() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_813_000 picoseconds. - Weight::from_parts(7_113_000, 0) + // Minimum execution time: 6_752_000 picoseconds. + Weight::from_parts(7_163_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -127,8 +127,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 21_140_000 picoseconds. - Weight::from_parts(21_831_000, 3983) + // Minimum execution time: 21_280_000 picoseconds. + Weight::from_parts(21_951_000, 3983) .saturating_add(T::DbWeight::get().reads(2_u64)) } } @@ -144,10 +144,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_638_000 picoseconds. - Weight::from_parts(19_446_696, 3983) - // Standard Error: 1_676 - .saturating_add(Weight::from_parts(5_450_264, 0).saturating_mul(c.into())) + // Minimum execution time: 5_099_000 picoseconds. + Weight::from_parts(19_831_182, 3983) + // Standard Error: 1_865 + .saturating_add(Weight::from_parts(5_629_167, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -158,8 +158,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 14_878_000 picoseconds. - Weight::from_parts(15_378_000, 3983) + // Minimum execution time: 15_068_000 picoseconds. + Weight::from_parts(15_619_000, 3983) .saturating_add(RocksDbWeight::get().reads(2_u64)) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) @@ -171,18 +171,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_588_000 picoseconds. - Weight::from_parts(13_428_230, 3983) - // Standard Error: 2_092 - .saturating_add(Weight::from_parts(5_663_250, 0).saturating_mul(c.into())) + // Minimum execution time: 5_030_000 picoseconds. + Weight::from_parts(16_388_597, 3983) + // Standard Error: 2_018 + .saturating_add(Weight::from_parts(5_828_632, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_542_000 picoseconds. - Weight::from_parts(6_893_000, 0) + // Minimum execution time: 7_024_000 picoseconds. + Weight::from_parts(7_324_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -193,18 +193,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 4_699_000 picoseconds. - Weight::from_parts(12_134_867, 3983) - // Standard Error: 3_490 - .saturating_add(Weight::from_parts(5_477_293, 0).saturating_mul(c.into())) + // Minimum execution time: 4_869_000 picoseconds. + Weight::from_parts(11_585_164, 3983) + // Standard Error: 4_216 + .saturating_add(Weight::from_parts(5_647_592, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) } fn dispatch_as_fallible() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_813_000 picoseconds. - Weight::from_parts(7_113_000, 0) + // Minimum execution time: 6_752_000 picoseconds. + Weight::from_parts(7_163_000, 0) } /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) @@ -214,8 +214,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `518` // Estimated: `3983` - // Minimum execution time: 21_140_000 picoseconds. - Weight::from_parts(21_831_000, 3983) + // Minimum execution time: 21_280_000 picoseconds. + Weight::from_parts(21_951_000, 3983) .saturating_add(RocksDbWeight::get().reads(2_u64)) } }