parent
612d0a68bf
commit
e4033faa38
@ -694,12 +694,11 @@ func (m Manager) RunMigrations(ctx context.Context, cfg Configurator, fromVM Ver
|
||||
}
|
||||
} else {
|
||||
sdkCtx.Logger().Info(fmt.Sprintf("adding a new module: %s", moduleName))
|
||||
module1, ok := m.Modules[moduleName].(HasGenesis)
|
||||
if ok {
|
||||
module1.InitGenesis(sdkCtx, c.cdc, module1.DefaultGenesis(c.cdc))
|
||||
if module, ok := m.Modules[moduleName].(HasGenesis); ok {
|
||||
module.InitGenesis(sdkCtx, c.cdc, module.DefaultGenesis(c.cdc))
|
||||
}
|
||||
if module2, ok := m.Modules[moduleName].(HasABCIGenesis); ok {
|
||||
moduleValUpdates := module2.InitGenesis(sdkCtx, c.cdc, module1.DefaultGenesis(c.cdc))
|
||||
if module, ok := m.Modules[moduleName].(HasABCIGenesis); ok {
|
||||
moduleValUpdates := module.InitGenesis(sdkCtx, c.cdc, module.DefaultGenesis(c.cdc))
|
||||
// The module manager assumes only one module will update the
|
||||
// validator set, and it can't be a new module.
|
||||
if len(moduleValUpdates) > 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user