File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
68
68
* (server) [ #21941 ] ( https://github.com/cosmos/cosmos-sdk/pull/21941 ) Regenerate addrbook.json for in place testnet.
69
69
* (store) [ #923 ] ( https://github.com/crypto-org-chain/cosmos-sdk/pull/923 ) Enable iavl async pruning.
70
70
* (store) [ #934 ] ( https://github.com/crypto-org-chain/cosmos-sdk/pull/934 ) Add pause pruning.
71
+ * (baseapp) [ #20208 ] ( https://github.com/cosmos/cosmos-sdk/pull/20208 ) Skip running validateBasic for rechecking txs.
71
72
72
73
### Bug Fixes
73
74
Original file line number Diff line number Diff line change @@ -915,8 +915,12 @@ func (app *BaseApp) runTxWithMultiStore(
915
915
}
916
916
917
917
msgs := tx .GetMsgs ()
918
- if err := validateBasicTxMsgs (msgs ); err != nil {
919
- return sdk.GasInfo {}, nil , nil , err
918
+ // run validate basic if mode != recheck.
919
+ // as validate basic is stateless, it is guaranteed to pass recheck, given that its passed checkTx.
920
+ if mode != execModeReCheck {
921
+ if err := validateBasicTxMsgs (msgs ); err != nil {
922
+ return sdk.GasInfo {}, nil , nil , err
923
+ }
920
924
}
921
925
922
926
for _ , msg := range msgs {
You can’t perform that action at this time.
0 commit comments