Skip to content

Commit

Permalink
setup upgrade handler in app.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tkkwon1998 committed Jul 17, 2023
1 parent abb0cc5 commit 18640b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,12 @@ func (app *Canto) setupUpgradeHandlers() {
v5.CreateUpgradeHandler(app.mm, app.configurator),
)

// v6 upgrade handler
app.UpgradeKeeper.SetUpgradeHandler(
v6.UpgradeName,
v6.CreateUpgradeHandler(app.mm, app.configurator),
)

// When a planned update height is reached, the old binary will panic
// writing on disk the height and name of the update that triggered it
// This will read that value, and execute the preparations for the upgrade.
Expand Down

0 comments on commit 18640b4

Please sign in to comment.