chore: log panic recovery in runTx (#17556)
This commit is contained in:
parent
bb0c866193
commit
cc6511e337
@ -807,6 +807,7 @@ func (app *BaseApp) runTx(mode execMode, txBytes []byte) (gInfo sdk.GasInfo, res
|
||||
if r := recover(); r != nil {
|
||||
recoveryMW := newOutOfGasRecoveryMiddleware(gasWanted, ctx, app.runTxRecoveryMiddleware)
|
||||
err, result = processRecovery(r, recoveryMW), nil
|
||||
ctx.Logger().Error("panic recovered in runTx", "err", err)
|
||||
}
|
||||
|
||||
gInfo = sdk.GasInfo{GasWanted: gasWanted, GasUsed: ctx.GasMeter().GasConsumed()}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user