We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c739cca commit ab3a3e1Copy full SHA for ab3a3e1
1 file changed
run/snapshot/download_snapshot.sh
@@ -1,4 +1,5 @@
1
#!/bin/bash
2
+set -eu
3
4
NETWORK_ID=${1:-""}
5
@@ -10,12 +11,14 @@ if [ -z "$URLS" ]; then
10
11
exit 1
12
fi
13
-echo "$URLS" | xargs -n 1 -P 8 aria2c -x 16 -s 16 -d /data
14
+echo "$URLS" | xargs -n 1 -P 2 aria2c -x 4 -s 4 -d /data --retry-wait=10 --max-tries=3
15
echo "Download snapshot completed. Unpacking..."
16
17
for FILE in /data/*.tar.lz4; do
18
echo "Extracting $FILE..."
- tar --lz4 -xvf "$FILE" -C /data
19
+ tar -I lz4 -xvf "$FILE" -C /
20
rm "$FILE"
21
done
22
+mv /geth /data
23
+
24
echo "Extract snapshot completed."
0 commit comments