mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 01:41:09 +00:00
CheckWeight: Add more logging (#1996)
This adds more logging to `CheckWeight` to get a better understanding why a transaction exhausts resources.
This commit is contained in:
@@ -18,13 +18,10 @@
|
||||
use codec::{Decode, Encode, MaxEncodedLen};
|
||||
use core::ops::{Add, AddAssign, Div, Mul, Sub, SubAssign};
|
||||
use sp_arithmetic::traits::{Bounded, CheckedAdd, CheckedSub, Zero};
|
||||
use sp_debug_derive::RuntimeDebug;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[derive(
|
||||
Encode, Decode, MaxEncodedLen, TypeInfo, Eq, PartialEq, Copy, Clone, RuntimeDebug, Default,
|
||||
)]
|
||||
#[derive(Encode, Decode, MaxEncodedLen, TypeInfo, Eq, PartialEq, Copy, Clone, Debug, Default)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub struct Weight {
|
||||
#[codec(compact)]
|
||||
|
||||
Reference in New Issue
Block a user