Skip to content

Commit

Permalink
fix: increase software-upgrade height
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Dec 5, 2023
1 parent 37382b6 commit 1270a38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions upgrade-test-scripts/start_ag0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,11 @@ wait_for_bootstrap
waitForBlock 2

voting_period_s=10
latest_height=$(ag0 status | jq -r .SyncInfo.latest_block_height)
height=$(($latest_height + $voting_period_s + 10))

latest_height=$(agd status | jq -r .SyncInfo.latest_block_height)
height=$((latest_height + voting_period_s + 20))
info=${UPGRADE_INFO-"{}"}
if echo "$info" | jq .; then
:
echo "upgrade-info: $info"
else
status=$?
echo "Upgrade info is not valid JSON: $info"
Expand All @@ -89,10 +88,9 @@ while true; do
echo "Upgrade height for $UPGRADE_TO reached. Killing agd"
echo "(CONSENSUS FAILURE above for height $height is expected)"
break
else
echo "Waiting for upgrade height for $UPGRADE_TO to be reached (need $height, have $latest_height)"
sleep 1
fi
echo "Waiting for upgrade height for $UPGRADE_TO to be reached (need $height, have $latest_height)"
sleep 1
done

kill $agd_PID
Expand Down
2 changes: 1 addition & 1 deletion upgrade-test-scripts/start_to_to.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fi

voting_period_s=10
latest_height=$(agd status | jq -r .SyncInfo.latest_block_height)
height=$((latest_height + voting_period_s + 10))
height=$((latest_height + voting_period_s + 20))
info=${UPGRADE_INFO-"{}"}
if echo "$info" | jq .; then
echo "upgrade-info: $info"
Expand Down

0 comments on commit 1270a38

Please sign in to comment.