From 802480446a4873e36836f1fcb4ed52e87874e8a8 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Wed, 24 Jul 2024 17:24:41 +0200 Subject: [PATCH] Add info about genesis/endblock ordering --- app/provider/app.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/provider/app.go b/app/provider/app.go index 19056e924b..b8aefe65ef 100644 --- a/app/provider/app.go +++ b/app/provider/app.go @@ -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, @@ -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,