Skip to content

Commit

Permalink
Merge pull request #169
Browse files Browse the repository at this point in the history
Added capability module in begin blocker
  • Loading branch information
bsrinivas8687 committed Mar 31, 2022
2 parents 0eb1baa + 4116a15 commit a2f7ea4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,13 @@ 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 {
a.moduleManager.SetOrderBeginBlockers(
upgradetypes.ModuleName, capabilitytypes.ModuleName, customminttypes.ModuleName,
minttypes.ModuleName, distributiontypes.ModuleName, slashingtypes.ModuleName,
evidencetypes.ModuleName, stakingtypes.ModuleName, ibchost.ModuleName,
)
}
return a.moduleManager.BeginBlock(ctx, req)
}

Expand Down

0 comments on commit a2f7ea4

Please sign in to comment.