Skip to content

Commit

Permalink
Don't run ValidateBasic on recheck (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon authored Apr 29, 2024
1 parent 1407495 commit de3aaa1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit de3aaa1

Please sign in to comment.