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
…#10725) (#10781)"

This reverts commit f02c26c.
  • Loading branch information
yihuang committed Mar 14, 2022
1 parent c740f51 commit e0fe179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

### Reverts

* revert f02c26ce51b948366a26817ff75c2f4aae15ed02: populate ctx.ConsensusParams for begin blockers

### Features

* (x/bank) [\#10771](https://github.com/cosmos/cosmos-sdk/pull/10771) Add safety check on bank module perms to allow module-specific mint restrictions (e.g. only minting a certain denom).
Expand Down
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 e0fe179

Please sign in to comment.