Skip to content

Commit

Permalink
fix: pass FinalizeBlock request and response to ABCIListener
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek committed Nov 16, 2023
1 parent c106c56 commit 9143e38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,14 @@ func (app *BaseApp) FinalizeBlock(req *abci.RequestFinalizeBlock) (*abci.Respons
if res != nil {
res.AppHash = app.workingHash()
}

// 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))
}
}

return res, err
}

Expand Down

0 comments on commit 9143e38

Please sign in to comment.