Skip to content

Commit

Permalink
Add info about genesis/endblock ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jul 24, 2024
1 parent 9ab14ee commit 8024804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/provider/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ func New(
providertypes.ModuleName,
)

// NOTE: provider module needs to come after the staking module, since
// it needs the information the staking module provides to compute validator updates.
app.MM.SetOrderEndBlockers(
crisistypes.ModuleName,
govtypes.ModuleName,
Expand All @@ -657,6 +659,8 @@ func New(
// NOTE: Capability module must occur first so that it can initialize any capabilities
// so that other modules that want to create or claim capabilities afterwards in InitChain
// can do so safely.
// NOTE: The provider module must come after genutils and staking, since it relies on the
// information about the validators these modules provide to compute validator updates.
app.MM.SetOrderInitGenesis(
capabilitytypes.ModuleName,
authtypes.ModuleName,
Expand Down

0 comments on commit 8024804

Please sign in to comment.