Merge PR #5718: Return Empty GasInfo on Failed Msg Validation
This commit is contained in:
parent
a5fd4705ed
commit
5c1c64bfae
|
@ -67,6 +67,8 @@ to now accept a `codec.JSONMarshaler` for modular serialization of genesis state
|
|||
|
||||
### Bug Fixes
|
||||
|
||||
* (baseapp) [\#5718](https://github.com/cosmos/cosmos-sdk/pull/5718) Remove call to `ctx.BlockGasMeter` during failed message validation which
|
||||
resulted in a panic when the tx execution mode was `CheckTx`.
|
||||
* (client) [\#5618](https://github.com/cosmos/cosmos-sdk/pull/5618) Fix crash on the client when the verifier is not set.
|
||||
* (x/distribution) [\#5620](https://github.com/cosmos/cosmos-sdk/pull/5620) Fix nil pointer deref in distribution tax/rewward validation helpers.
|
||||
* (genesis) [\#5086](https://github.com/cosmos/cosmos-sdk/issues/5086) Ensure `gentxs` are always an empty array instead of `nil`
|
||||
|
|
|
@ -521,8 +521,7 @@ func (app *BaseApp) runTx(mode runTxMode, txBytes []byte, tx sdk.Tx) (gInfo sdk.
|
|||
|
||||
msgs := tx.GetMsgs()
|
||||
if err := validateBasicTxMsgs(msgs); err != nil {
|
||||
gInfo = sdk.GasInfo{GasUsed: ctx.BlockGasMeter().GasConsumed()}
|
||||
return gInfo, nil, err
|
||||
return sdk.GasInfo{}, nil, err
|
||||
}
|
||||
|
||||
if app.anteHandler != nil {
|
||||
|
|
Loading…
Reference in New Issue