diff --git a/pallets/subtensor/src/lib.rs b/pallets/subtensor/src/lib.rs index 25838b1086..b355e96243 100644 --- a/pallets/subtensor/src/lib.rs +++ b/pallets/subtensor/src/lib.rs @@ -2207,9 +2207,13 @@ where self, who: &Self::AccountId, call: &Self::Call, - _info: &DispatchInfoOf, - _len: usize, + info: &DispatchInfoOf, + len: usize, ) -> Result { + // We need to perform same checks as Self::validate so that + // the validation is performed during Executive::apply_extrinsic as well. + // this prevents inclusion of invalid tx in a block by malicious block author. + self.validate(who, call, info, len)?; match call.is_sub_type() { Some(Call::add_stake { .. }) => { let transaction_fee = 100000;