Skip to content

Commit 817cc47

Browse files
authored
minor fixes to stateful upgrade (zeta-chain#1280)
1 parent e0c3ba1 commit 817cc47

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

Dockerfile-versioned

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ RUN cp $GOPATH/bin/smoketest $GOPATH/bin/new/
2929

3030
# Checkout and build old binary
3131
RUN cd node && git checkout ${old_version}
32-
RUN cd node && git pull
3332
RUN cd node && make install
3433
RUN cd node && make install-smoketest
3534
RUN cp $GOPATH/bin/zetacored $GOPATH/bin/old/

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ stop-stress-test:
222222

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

contrib/localnet/orchestrator/start-upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ if [ $SMOKETEST_EXIT_CODE -ne 0 ]; then
2929
fi
3030

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

34-
smoketest-new "$SMOKETEST_CMD" --deployed --wait-for 335
34+
smoketest-new "$SMOKETEST_CMD" --deployed --wait-for 405
3535

3636
if [ $SMOKETEST_EXIT_CODE -eq 0 ]; then
3737
echo "smoketest passed"

contrib/localnet/scripts/genesis-stateful.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ echo
174174

175175
if [ $HOSTNAME = "zetacore0" ]
176176
then
177-
/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
177+
/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
178178
fi
179179

180180
sleep 8

0 commit comments

Comments
 (0)