diff --git a/pallets/accounting/src/lib.rs b/pallets/accounting/src/lib.rs index e50c0abc..aa81f6c1 100644 --- a/pallets/accounting/src/lib.rs +++ b/pallets/accounting/src/lib.rs @@ -305,12 +305,12 @@ mod pallet { PostingNumber::::put(posting_index); PostingDetail::::insert(&balance_key, &posting_index, detail); - Self::deposit_event(Event::LegderUpdate( - key.primary_party, - key.ledger, - key.amount, - posting_index, - )); + // Self::deposit_event(Event::LegderUpdate( + // key.primary_party, + // key.ledger, + // key.amount, + // posting_index, + // )); Ok(()) } diff --git a/pallets/balances/src/weights.rs b/pallets/balances/src/weights.rs index 9b72ad78..0a0f6bdc 100644 --- a/pallets/balances/src/weights.rs +++ b/pallets/balances/src/weights.rs @@ -66,8 +66,8 @@ impl WeightInfo for SubstrateWeight { // Storage: Accounting GlobalLedger (r:2 w:2) // Storage: Accounting PostingDetail (r:0 w:4) fn transfer() -> Weight { - // Minimum execution time: 522_320 nanoseconds. - Weight::from_ref_time(531_003_000 as u64) + // Minimum execution time: 401_222 nanoseconds. + Weight::from_ref_time(449_802_000 as u64) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } @@ -80,22 +80,22 @@ impl WeightInfo for SubstrateWeight { // Storage: Accounting GlobalLedger (r:2 w:2) // Storage: Accounting PostingDetail (r:0 w:4) fn transfer_keep_alive() -> Weight { - // Minimum execution time: 480_735 nanoseconds. - Weight::from_ref_time(500_857_000 as u64) + // Minimum execution time: 259_060 nanoseconds. + Weight::from_ref_time(417_939_000 as u64) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } // Storage: System Account (r:1 w:1) fn set_balance_creating() -> Weight { - // Minimum execution time: 93_022 nanoseconds. - Weight::from_ref_time(96_866_000 as u64) + // Minimum execution time: 93_120 nanoseconds. + Weight::from_ref_time(97_804_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: System Account (r:1 w:1) fn set_balance_killing() -> Weight { - // Minimum execution time: 99_443 nanoseconds. - Weight::from_ref_time(113_790_000 as u64) + // Minimum execution time: 109_070 nanoseconds. + Weight::from_ref_time(113_298_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -108,8 +108,8 @@ impl WeightInfo for SubstrateWeight { // Storage: Accounting GlobalLedger (r:2 w:2) // Storage: Accounting PostingDetail (r:0 w:4) fn force_transfer() -> Weight { - // Minimum execution time: 505_164 nanoseconds. - Weight::from_ref_time(533_209_000 as u64) + // Minimum execution time: 424_742 nanoseconds. + Weight::from_ref_time(446_402_000 as u64) .saturating_add(T::DbWeight::get().reads(12 as u64)) .saturating_add(T::DbWeight::get().writes(13 as u64)) } @@ -122,8 +122,8 @@ impl WeightInfo for SubstrateWeight { // Storage: Accounting GlobalLedger (r:2 w:2) // Storage: Accounting PostingDetail (r:0 w:4) fn transfer_all() -> Weight { - // Minimum execution time: 516_312 nanoseconds. - Weight::from_ref_time(546_326_000 as u64) + // Minimum execution time: 418_174 nanoseconds. + Weight::from_ref_time(454_420_000 as u64) .saturating_add(T::DbWeight::get().reads(11 as u64)) .saturating_add(T::DbWeight::get().writes(12 as u64)) } @@ -136,10 +136,9 @@ impl WeightInfo for SubstrateWeight { // Storage: Accounting GlobalLedger (r:2 w:2) // Storage: Accounting PostingDetail (r:0 w:2) fn force_unreserve() -> Weight { - // Minimum execution time: 63_000 nanoseconds. - // Minimum execution time: 287_973 nanoseconds. - Weight::from_ref_time(299_070_000 as u64) - .saturating_add(T::DbWeight::get().reads(9 as u64)) - .saturating_add(T::DbWeight::get().writes(8 as u64)) + // Minimum execution time: 247_109 nanoseconds. + Weight::from_ref_time(262_610_000 as u64) + .saturating_add(T::DbWeight::get().reads(9 as u64)) + .saturating_add(T::DbWeight::get().writes(8 as u64)) } }