Skip to content

Commit

Permalink
feat: Add VoteInfos to context in BeginBlock (cosmos#15403)
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica authored Mar 15, 2023
1 parent 1c31e98 commit 7fbb822
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeg
app.deliverState.ctx = app.deliverState.ctx.
WithBlockGasMeter(gasMeter).
WithHeaderHash(req.Hash).
WithConsensusParams(app.GetConsensusParams(app.deliverState.ctx))
WithConsensusParams(app.GetConsensusParams(app.deliverState.ctx)).
WithVoteInfos(req.LastCommitInfo.GetVotes())

if app.checkState != nil {
app.checkState.ctx = app.checkState.ctx.
Expand Down

0 comments on commit 7fbb822

Please sign in to comment.