Skip to content

Commit

Permalink
Chore: bump BCNA module version & set PlanName for Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
RaulBernal committed Apr 24, 2023
1 parent 1cbd759 commit 520c483
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down
2 changes: 1 addition & 1 deletion x/bcna/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
Expand Down

0 comments on commit 520c483

Please sign in to comment.