Skip to content

Commit

Permalink
fix: log errors in FinalizeBlock ABCIListeners instead of panicking
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Nov 16, 2023
1 parent fa2c1ce commit e465962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Respons
// call the streaming service hooks with the FinalizeBlock messages
for _, streamingListener := range app.streamingManager.ABCIListeners {
if err := streamingListener.ListenFinalizeBlock(app.finalizeBlockState.ctx, *req, *res); err != nil {
panic(fmt.Errorf("ListenFinalizeBlock listening hook failed, height: %d, err: %w", req.Height, err))
app.logger.Error("ListenFinalizeBlock listening hook failed, height: %d, err: %w", req.Height, err)
}
}

Expand Down

0 comments on commit e465962

Please sign in to comment.