Skip to content

Commit 79f0c27

Browse files
committed
Add block heigh validator set
1 parent 5baa6b9 commit 79f0c27

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/app.go

+5
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@ func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.R
728728
// context.WithValue(ctx.Context(), dexcache.GOCTX_KEY, dexcache.NewOrders()),
729729
// )
730730
// app.Logger().Info(fmt.Sprintf("BeginBlocker context %s", newCtx.Context().Value(dexcache.GOCTX_KEY).(dexcache.Orders)))
731+
if ctx.BlockHeight() == 695725 || ctx.BlockHeight() == 695726 {
732+
stakingParams := app.StakingKeeper.GetParams(ctx)
733+
stakingParams.MaxValidators = 75
734+
app.StakingKeeper.SetParams(ctx, stakingParams)
735+
}
731736
return app.mm.BeginBlock(ctx, req)
732737
}
733738

0 commit comments

Comments
 (0)