From 1f23e3e38eb05dce7cf3b7044341e0d3a54884e7 Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Mon, 29 Apr 2024 08:36:48 -0700 Subject: [PATCH] Don't run ValidateBasic on recheck (#601) (cherry picked from commit de3aaa1afcf4666d61023bbcd11ef86c9cb2cbdf) --- baseapp/baseapp.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 704732714746..dc1376f8613d 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -675,8 +675,10 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte) (gInfo sdk.GasInfo, re } msgs := tx.GetMsgs() - if err := validateBasicTxMsgs(msgs); err != nil { - return sdk.GasInfo{}, nil, nil, 0, err + if mode != runTxModeReCheck { + if err := validateBasicTxMsgs(msgs); err != nil { + return sdk.GasInfo{}, nil, nil, 0, err + } } if app.anteHandler != nil {