@@ -48,7 +48,7 @@ use frame_support::weights::Weight;
4848use frame_system:: offchain:: SubmitTransaction ;
4949use frame_system:: pallet_prelude:: * ;
5050pub use pallet:: * ;
51- use parity_scale_codec:: { Decode , Encode , MaxEncodedLen } ;
51+ use parity_scale_codec:: { Decode , DecodeWithMemTracking , Encode , MaxEncodedLen } ;
5252use scale_info:: TypeInfo ;
5353use sp_consensus_subspace:: WrappedPotOutput ;
5454use sp_consensus_subspace:: consensus:: is_proof_of_time_valid;
@@ -169,7 +169,17 @@ pub type BlockTreeNodeFor<T> = crate::block_tree::BlockTreeNode<
169169> ;
170170
171171/// Custom origin for validated unsigned extrinsics.
172- #[ derive( PartialEq , Eq , Clone , Encode , Decode , RuntimeDebug , TypeInfo , MaxEncodedLen ) ]
172+ #[ derive(
173+ PartialEq ,
174+ Eq ,
175+ Clone ,
176+ Encode ,
177+ Decode ,
178+ RuntimeDebug ,
179+ TypeInfo ,
180+ MaxEncodedLen ,
181+ DecodeWithMemTracking ,
182+ ) ]
173183pub enum RawOrigin {
174184 ValidatedUnsigned ,
175185}
@@ -887,7 +897,7 @@ mod pallet {
887897 ExecutionVersionMissing ,
888898 }
889899
890- #[ derive( TypeInfo , Encode , Decode , PalletError , Debug , PartialEq ) ]
900+ #[ derive( TypeInfo , Encode , Decode , PalletError , Debug , PartialEq , DecodeWithMemTracking ) ]
891901 pub enum FraudProofError {
892902 /// The targeted bad receipt not found which may already pruned by other
893903 /// fraud proof or the fraud proof is submitted to the wrong fork.
@@ -1037,7 +1047,7 @@ mod pallet {
10371047 }
10381048
10391049 /// Reason for slashing an operator
1040- #[ derive( Clone , Debug , PartialEq , Encode , Decode , TypeInfo ) ]
1050+ #[ derive( Clone , Debug , PartialEq , Encode , Decode , TypeInfo , DecodeWithMemTracking ) ]
10411051 pub enum SlashedReason < DomainBlock , ReceiptHash > {
10421052 /// Operator produced bad bundle.
10431053 InvalidBundle ( DomainBlock ) ,
0 commit comments