Skip to content

Commit

Permalink
Revert "fix: populate ctx.ConsensusParams for begin blockers (backport
Browse files Browse the repository at this point in the history
…cosmos#10725) (cosmos#10781)"

This reverts commit f02c26c.
  • Loading branch information
tomtau committed Sep 2, 2022
1 parent 48467cd commit 862d2d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,7 @@ 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))
WithHeaderHash(req.Hash)

// we also set block gas meter to checkState in case the application needs to
// verify gas consumption during (Re)CheckTx
Expand Down

0 comments on commit 862d2d9

Please sign in to comment.