We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c57f8f commit f9a84abCopy full SHA for f9a84ab
snapshot/snapshot_download.sh
@@ -75,16 +75,11 @@ rm -rf $node_home/data/*
75
76
cd $node_home
77
78
-# always try from our local snapshot first, if failure => use external providers
+
79
BASE_URL="http://localhost/"
80
URL="http://localhost/chain.json"
81
-status_code=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 3 --max-time 3 $URL)
82
-if [[ $status_code == "200" ]]; then
83
- URL=`curl -s $URL |jq -r '.snapshot_url'`
84
- URL="${BASE_URL}${URL##*/}"
85
-fi
86
-
87
+URL=`curl -s $URL |jq -r '.snapshot_url'`
+URL="${BASE_URL}${URL##*/}"
88
echo "URL=$URL"
89
90
if [[ -z $URL ]]; then
0 commit comments