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:
Bastian Köcher
2023-10-24 11:55:46 +02:00
committed by GitHub
parent 39c04fdd96
commit a5a2432d22
3 changed files with 56 additions and 15 deletions
+1 -1
View File
@@ -390,7 +390,7 @@ impl<Call: Encode + GetDispatchInfo, Extra: Encode> GetDispatchInfo
}
/// A struct holding value for each `DispatchClass`.
#[derive(Clone, Eq, PartialEq, Default, RuntimeDebug, Encode, Decode, TypeInfo, MaxEncodedLen)]
#[derive(Clone, Eq, PartialEq, Default, Debug, Encode, Decode, TypeInfo, MaxEncodedLen)]
pub struct PerDispatchClass<T> {
/// Value for `Normal` extrinsics.
normal: T,