Skip to content

Commit

Permalink
[EVM] rebasing sei-cosmos (#422)
Browse files Browse the repository at this point in the history
- sei cosmos main rebase

- unit / lower env

---------

Co-authored-by: Philip Su <[email protected]>
Co-authored-by: Yiming Zang <[email protected]>
Co-authored-by: Aleksandr Bezobchuk <[email protected]>
Co-authored-by: Uday Patil <[email protected]>
Co-authored-by: codchen <[email protected]>
  • Loading branch information
6 people committed Mar 7, 2024
1 parent eae4daa commit 9127c3f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,20 @@ func (app *BaseApp) ProcessProposal(ctx context.Context, req *abci.RequestProces
}
}()

defer func() {
if err := recover(); err != nil {
app.logger.Error(
"panic recovered in ProcessProposal",
"height", req.Height,
"time", req.Time,
"hash", fmt.Sprintf("%X", req.Hash),
"panic", err,
)

resp = &abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
}
}()

if app.processProposalHandler != nil {
resp, err = app.processProposalHandler(app.processProposalState.ctx, req)
if err != nil {
Expand Down

0 comments on commit 9127c3f

Please sign in to comment.