Skip to content

Commit

Permalink
hack: test athens upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed May 23, 2024
1 parent fc3cf8c commit 7e60244
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile-upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ WORKDIR /go/delivery/zeta-node
RUN mkdir -p $GOPATH/bin/old
RUN mkdir -p $GOPATH/bin/new

ARG OLD_VERSION=v15.0.0
ENV NEW_VERSION=v16
ARG OLD_VERSION=release/v16
ENV NEW_VERSION=v17

# Build new release from the current source
COPY go.mod /go/delivery/zeta-node/
Expand Down
1 change: 1 addition & 0 deletions app/setup_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func SetupHandlers(app *App) {
})

app.UpgradeKeeper.SetUpgradeHandler("v17-athens", func(ctx sdk.Context, _ types.Plan, vm module.VersionMap) (module.VersionMap, error) {
app.Logger().Info("Running upgrade handler for v17-athens")
return vm, nil
})

Expand Down
6 changes: 2 additions & 4 deletions contrib/localnet/scripts/start-zetacored.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ export DAEMON_DATA_BACKUP_DIR=$DAEMON_HOME
export CLIENT_SKIP_UPGRADE=true
export CLIENT_START_PROCESS=false
export UNSAFE_SKIP_BACKUP=true
export UpgradeName=${NEW_VERSION}

# upgrade name used for upgrade testing
export UpgradeName=${NEW_VERSION}
export UpgradeName=v7-athens

# generate node list
START=1
Expand Down Expand Up @@ -244,5 +243,4 @@ else
# We use tail -f to keep the container running
tail -f zetanode.log

fi

fi

0 comments on commit 7e60244

Please sign in to comment.