Skip to content

Commit

Permalink
minor fixes to stateful upgrade (#1280)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinssgh authored Oct 16, 2023
1 parent e0c3ba1 commit 817cc47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Dockerfile-versioned
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ RUN cp $GOPATH/bin/smoketest $GOPATH/bin/new/

# Checkout and build old binary
RUN cd node && git checkout ${old_version}
RUN cd node && git pull
RUN cd node && make install
RUN cd node && make install-smoketest
RUN cp $GOPATH/bin/zetacored $GOPATH/bin/old/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ stop-stress-test:

stateful-upgrade:
@echo "--> Starting stateful smoketest"
$(DOCKER) build --build-arg old_version=v9.0.0-rc2 --build-arg new_version=v10.0.0 -t zetanode -f ./Dockerfile-versioned .
$(DOCKER) build --build-arg old_version=mock-mainnet-01-5-ga66d0b77 --build-arg new_version=v10.0.0-30 -t zetanode -f ./Dockerfile-versioned .
$(DOCKER) build -t orchestrator -f contrib/localnet/orchestrator/Dockerfile-upgrade.fastbuild .
cd contrib/localnet/ && $(DOCKER) compose -f docker-compose-stateful.yml up -d

Expand Down
4 changes: 2 additions & 2 deletions contrib/localnet/orchestrator/start-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ if [ $SMOKETEST_EXIT_CODE -ne 0 ]; then
fi

# Restart zetaclients at upgrade height
/work/restart-zetaclientd.sh -u 330 -n 2
/work/restart-zetaclientd.sh -u 400 -n 2

smoketest-new "$SMOKETEST_CMD" --deployed --wait-for 335
smoketest-new "$SMOKETEST_CMD" --deployed --wait-for 405

if [ $SMOKETEST_EXIT_CODE -eq 0 ]; then
echo "smoketest passed"
Expand Down
2 changes: 1 addition & 1 deletion contrib/localnet/scripts/genesis-stateful.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ echo

if [ $HOSTNAME = "zetacore0" ]
then
/root/.zetacored/zetavisor/current/bin/zetacored tx gov submit-legacy-proposal software-upgrade $UpgradeName --from hotkey --deposit 100000000azeta --upgrade-height 320 --title $UpgradeName --description $UpgradeName --keyring-backend test --chain-id $CHAINID --yes --no-validate --fees=200azeta --broadcast-mode block
/root/.zetacored/zetavisor/current/bin/zetacored tx gov submit-legacy-proposal software-upgrade $UpgradeName --from hotkey --deposit 100000000azeta --upgrade-height 400 --title $UpgradeName --description $UpgradeName --keyring-backend test --chain-id $CHAINID --yes --no-validate --fees=200azeta --broadcast-mode block
fi

sleep 8
Expand Down

0 comments on commit 817cc47

Please sign in to comment.