diff --git a/app/upgrades.go b/app/upgrades.go index 1262dcaf..1f30332f 100644 --- a/app/upgrades.go +++ b/app/upgrades.go @@ -18,14 +18,14 @@ func (app App) RegisterUpgradeHandlers() { panic(err) } - app.wakeandbake46_8(upgradeInfo) + app.wakeandbake_test1(upgradeInfo) app.wakeandbake46(upgradeInfo) } -func (app *App) wakeandbake46_8(_ upgradetypes.Plan) { - planName := "wakeandbake46_8" +func (app *App) wakeandbake_test1(_ upgradetypes.Plan) { + planName := "wakeandbake_test1" app.UpgradeKeeper.SetUpgradeHandler(planName, func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - ctx.Logger().Info("No-Op, only for keep the consensus...") + ctx.Logger().Info("BCNA module upgrade...") // no-op - only for consensus. return app.mm.RunMigrations(ctx, app.configurator, fromVM) }) diff --git a/x/bcna/module.go b/x/bcna/module.go index 3c87bd01..3b54cc33 100644 --- a/x/bcna/module.go +++ b/x/bcna/module.go @@ -147,7 +147,7 @@ func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.Raw } // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented on each consensus-breaking change introduced by the module. To avoid wrong/empty versions, the initial version should be set to 1 -func (AppModule) ConsensusVersion() uint64 { return 1 } +func (AppModule) ConsensusVersion() uint64 { return 2 } // BeginBlock contains the logic that is automatically triggered at the beginning of each block func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) {}