Skip to content

Commit

Permalink
Lint 0
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-romero committed Jan 16, 2025
1 parent 91deff0 commit 4f47510
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/upgrade_forkid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ elif [ "$TARGET_FORKID" -eq "12" ]; then
elif [ "$TARGET_FORKID" -eq "13" ]; then
TAG_TARGET_FORKID=v8.1.0-rc.2-fork.13
fi
UPGRADED_PARAMS_FILE=".github/tests/combinations/fork${TARGET_FORKID}-new-cdk-stack-rollup.yml"

PARAMS_FILE=".github/tests/combinations/fork${SOURCE_FORKID}-new-cdk-stack-rollup.yml"

KURTOSIS_CONFIG=upgrade_from_${SOURCE_FORKID}_to_${TARGET_FORKID}_enclave_${STACK_NAME}.json
cp $PARAMS_FILE $KURTOSIS_CONFIG
cp "$PARAMS_FILE" "$KURTOSIS_CONFIG"
sed -ni '/cdk_erigon_node_image/!p' "$KURTOSIS_CONFIG"
echo " cdk_erigon_node_image: $ERIGON_IMAGE" >> "$KURTOSIS_CONFIG"

Expand Down Expand Up @@ -203,7 +202,7 @@ echo

# Check forkid on Sequencer
FORKID=$SOURCE_FORKID
while [ $FORKID -ne $TARGET_FORKID ]; do
while [ "$FORKID" -ne "$TARGET_FORKID" ]; do
FORKID=$(printf "%d" $(cast rpc --json --rpc-url $(kurtosis port print "$STACK_NAME" $SVC_SEQUENCER rpc) zkevm_getForkId | jq -r))
echo "Current Sequencer forkid: $FORKID"
sleep 3
Expand All @@ -225,7 +224,7 @@ echo
FORKID=$SOURCE_FORKID
COUNTER=0
MAX_RETRIES=25
while [ $FORKID -ne $TARGET_FORKID ]; do
while [ "$FORKID" -ne "$TARGET_FORKID" ]; do
((COUNTER++))
FORKID=$(printf "%d" $(cast rpc --json --rpc-url $(kurtosis port print "$STACK_NAME" $SVC_RPC rpc) zkevm_getForkId | jq -r))
echo "Current RPC forkid: $FORKID"
Expand Down

0 comments on commit 4f47510

Please sign in to comment.