From b24601f47aedda306c4bdf48dc4aa887cf8b4ed1 Mon Sep 17 00:00:00 2001 From: czarly <379651+czarly@users.noreply.github.com> Date: Fri, 25 Mar 2022 04:16:49 +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 c29f8868..86f59df9 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 -c "${SNAPSHOT_URL}" -O - | tar -xz -C ${BOR_HOME}/bor/chaindata && touch ${BOR_HOME}/bootstrapped + wget --retry-connrefused --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')