feat: Add VoteInfos to context in BeginBlock (#15403)

This commit is contained in:
Facundo Medica
2023-03-15 17:11:20 +00:00
committed by GitHub
parent 1c31e98903
commit 7fbb8223bd
+2 -1
View File
@@ -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.