Skip to content

Commit

Permalink
commenting out recover to panic
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesha Upadhyaya authored and Ganesha Upadhyaya committed Nov 22, 2023
1 parent 2def4f5 commit dbbf925
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,18 +428,18 @@ func (app *BaseApp) PrepareProposal(req *abci.RequestPrepareProposal) (resp *abc
WithConsensusParams(app.GetConsensusParams(app.prepareProposalState.ctx)).
WithBlockGasMeter(app.getBlockGasMeter(app.prepareProposalState.ctx))

defer func() {
if err := recover(); err != nil {
app.logger.Error(
"panic recovered in PrepareProposal",
"height", req.Height,
"time", req.Time,
"panic", err,
)

resp = &abci.ResponsePrepareProposal{Txs: req.Txs}
}
}()
// defer func() {
// if err := recover(); err != nil {
// app.logger.Error(
// "panic recovered in PrepareProposal",
// "height", req.Height,
// "time", req.Time,
// "panic", err,
// )

// resp = &abci.ResponsePrepareProposal{Txs: req.Txs}
// }
// }()

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

0 comments on commit dbbf925

Please sign in to comment.