Skip to content

Commit

Permalink
set OLD_VERSION before running e2e to tolerate missed upgrade height
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Aug 12, 2024
1 parent bd05139 commit 2a11dd8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contrib/localnet/orchestrator/start-zetae2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ if [ "$LOCALNET_MODE" == "upgrade" ]; then

# set upgrade height to 225 by default
UPGRADE_HEIGHT=${UPGRADE_HEIGHT:=225}
OLD_VERSION=$(get_zetacored_version)

if [[ ! -f deployed.yml ]]; then
zetae2e local $E2E_ARGS --setup-only --config config.yml --config-out deployed.yml --skip-header-proof
Expand All @@ -123,9 +124,6 @@ if [ "$LOCALNET_MODE" == "upgrade" ]; then
fi

echo "Waiting for upgrade height..."

OLD_VERSION=$(get_zetacored_version)

CURRENT_HEIGHT=0
WAIT_HEIGHT=$(( UPGRADE_HEIGHT - 1 ))
# wait for upgrade height
Expand Down

0 comments on commit 2a11dd8

Please sign in to comment.