From e0fe179bc9710a14bd3418f5bdcb067ab54c2d78 Mon Sep 17 00:00:00 2001 From: HuangYi Date: Mon, 14 Mar 2022 11:52:15 +0800 Subject: [PATCH] Revert "fix: populate ctx.ConsensusParams for begin blockers (backport #10725) (#10781)" This reverts commit f02c26ce51b948366a26817ff75c2f4aae15ed02. --- CHANGELOG.md | 4 ++++ baseapp/abci.go | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3de0c5171c69..5e5b15683acd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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). diff --git a/baseapp/abci.go b/baseapp/abci.go index bcf72cff4ddf..604acecc9050 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -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