From b81f92ca908fa44c358714ea276ee9405929adfc Mon Sep 17 00:00:00 2001 From: Tanmay Date: Wed, 20 Mar 2024 09:11:51 -0400 Subject: [PATCH] feat: add v15 upgrade handler (#1913) * add v15 upgrade handler * add changelog entry * generate files --------- Co-authored-by: Lucas Bertrand --- Dockerfile-versioned-source | 2 +- app/setup_handlers.go | 4 +--- changelog.md | 1 + 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile-versioned-source b/Dockerfile-versioned-source index 9cbbbab68f..5e01e79356 100644 --- a/Dockerfile-versioned-source +++ b/Dockerfile-versioned-source @@ -17,7 +17,7 @@ WORKDIR /go/delivery/zeta-node RUN mkdir -p $GOPATH/bin/old RUN mkdir -p $GOPATH/bin/new -ENV NEW_VERSION=v14 +ENV NEW_VERSION=v15 # Build new release from the current source COPY go.mod /go/delivery/zeta-node/ diff --git a/app/setup_handlers.go b/app/setup_handlers.go index b773745398..35a095406f 100644 --- a/app/setup_handlers.go +++ b/app/setup_handlers.go @@ -5,10 +5,9 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/module" "github.com/cosmos/cosmos-sdk/x/upgrade/types" - crosschaintypes "github.com/zeta-chain/zetacore/x/crosschain/types" ) -const releaseVersion = "v14" +const releaseVersion = "v15" func SetupHandlers(app *App) { app.UpgradeKeeper.SetUpgradeHandler(releaseVersion, func(ctx sdk.Context, plan types.Plan, vm module.VersionMap) (module.VersionMap, error) { @@ -17,7 +16,6 @@ func SetupHandlers(app *App) { for m, mb := range app.mm.Modules { vm[m] = mb.ConsensusVersion() } - VersionMigrator{v: vm}.TriggerMigration(crosschaintypes.ModuleName) return app.mm.RunMigrations(ctx, app.configurator, vm) }) diff --git a/changelog.md b/changelog.md index ce10056f1f..a2f717471b 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ ### Features *[1912](https://github.com/zeta-chain/node/pull/1912) - add reset chain nonces msg +*[1913](https://github.com/zeta-chain/node/pull/1913) - add upgrade handler for version v15.0.0 ## Version: v14