From 7fbb8223bd4a2e4e849ab88ba18a1e89346624a2 Mon Sep 17 00:00:00 2001 From: Facundo Medica <14063057+facundomedica@users.noreply.github.com> Date: Wed, 15 Mar 2023 14:11:20 -0300 Subject: [PATCH] feat: Add VoteInfos to context in BeginBlock (#15403) --- baseapp/abci.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/baseapp/abci.go b/baseapp/abci.go index 722590f73fc8..f5e8aa04e33c 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -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.