Skip to content

Commit d944d29

Browse files
committed
merge with origin
2 parents 731a3fd + 80f5681 commit d944d29

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docker/data-restore/data-restore-entry.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,20 @@ case $NETWORK in
4343
;;
4444
esac
4545

46+
# Default to executing data restore in a finite mode.
47+
MODE="--finite"
48+
case $FINITE_MODE in
49+
"true" | "")
50+
;;
51+
"false")
52+
MODE=""
53+
;;
54+
*)
55+
echo "Invalid value of FINITE_MODE: expected boolean"
56+
exit 1
57+
;;
58+
esac
59+
4660
if [[ -n $PG_DUMP && "$COMMAND" == "--continue" ]]
4761
then
4862
# Do not drop db if the file doesn't exist.
@@ -56,4 +70,4 @@ fi
5670

5771
CONFIG_FILE="/usr/src/configs/${NETWORK}.json"
5872

59-
zk f ./target/release/zksync_data_restore $COMMAND --finite --config $CONFIG_FILE --web3 $WEB3_URL || exit 1
73+
zk f ./target/release/zksync_data_restore $COMMAND $MODE --config $CONFIG_FILE --web3 $WEB3_URL || exit 1

0 commit comments

Comments
 (0)