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

This commit is contained in:
Facundo Medica 2023-03-15 14:11:20 -03:00 committed by GitHub
parent 1c31e98903
commit 7fbb8223bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.