Skip to content

Commit

Permalink
Modify block height comparision for begin blocker
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Mar 31, 2022
1 parent a2f7ea4 commit 1fdfe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func NewApp(
func (a *App) Name() string { return a.BaseApp.Name() }

func (a *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock {
if ctx.BlockHeight() == 5_140_000 {
if ctx.BlockHeight() >= 5_140_000 {
a.moduleManager.SetOrderBeginBlockers(
upgradetypes.ModuleName, capabilitytypes.ModuleName, customminttypes.ModuleName,
minttypes.ModuleName, distributiontypes.ModuleName, slashingtypes.ModuleName,
Expand Down

0 comments on commit 1fdfe81

Please sign in to comment.