From 115c4fd30f3379d9c3ff9a9f9d70ecebdea5a6ae Mon Sep 17 00:00:00 2001 From: czarly <379651+czarly@users.noreply.github.com> Date: Fri, 25 Mar 2022 04:20:24 +0400 Subject: [PATCH] robust snapshot download --- polygon/bor/scripts/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polygon/bor/scripts/entrypoint.sh b/polygon/bor/scripts/entrypoint.sh index 86f59df9..e6bc953d 100755 --- a/polygon/bor/scripts/entrypoint.sh +++ b/polygon/bor/scripts/entrypoint.sh @@ -31,7 +31,7 @@ if [ "${BOOTSTRAP}" == 1 ] && [ -n "${SNAPSHOT_URL}" ] && [ ! -f "${BOR_HOME}/bo then echo "downloading snapshot from ${SNAPSHOT_URL}" mkdir -p ${BOR_HOME}/bor/chaindata - wget --retry-connrefused --tries=0 --wait=10 --waitretry=5 -O - "${SNAPSHOT_URL}" | tar -xz -C ${BOR_HOME}/bor/chaindata && touch ${BOR_HOME}/bootstrapped + wget --tries=0 --wait=10 --waitretry=5 -O - "${SNAPSHOT_URL}" | tar -xz -C ${BOR_HOME}/bor/chaindata && touch ${BOR_HOME}/bootstrapped fi READY=$(curl -s http://heimdalld:26657/status | jq '.result.sync_info.catching_up')