Skip to content

module.Manager.RunMigrations should probably call InitGenesis when new modules are added #8989

Closed
@aaronc

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions