Skip to content

Commit

Permalink
refactor: delete compatible get consensus params (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
zakir-code committed Sep 9, 2024
1 parent 85bee39 commit fd5ee32
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,6 @@ func (app *App) Name() string {

// BeginBlocker application updates every begin block
func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
consParams := ctx.ConsensusParams()
if consParams == nil || consParams.Block == nil {
baseAppLegacySS, found := app.ParamsKeeper.GetSubspace(baseapp.Paramspace)
if !found {
panic("consensus params not found")
}
cp := baseapp.GetConsensusParams(ctx, baseAppLegacySS)
ctx = ctx.WithConsensusParams(cp)
}
return app.mm.BeginBlock(ctx, req)
}

Expand Down

0 comments on commit fd5ee32

Please sign in to comment.