module.Manager.RunMigrations should probably call InitGenesis when new modules are added #8989
Closed
Description
I was checking out module.Manager.RunMigrations
to see what happens when new modules are added and created #8988.
When a module is added to a chain during an upgrade, we should probably be calling its InitGenesis
method. Modules probably expect that InitGenesis
was called at some point and may do some special initialization there even with empty genesis state. Either this should either happen automatically in RunMigrations
(with an empty genesis state) or explicitly in the UpgradeHandler
with possibly some initial state. What do you think @AmauryM @technicallyty ?
Activity