From 23895ff91e949b061bfbc31ecbe01e8c74f5dcd1 Mon Sep 17 00:00:00 2001 From: Markus Petzsch Date: Mon, 7 Nov 2022 16:36:33 +0100 Subject: [PATCH] Enable resume of partially downloaded utxo-sets closes #718 --- contrib/FastSync/load-utxo-set.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/FastSync/load-utxo-set.sh b/contrib/FastSync/load-utxo-set.sh index d6c407c..ee612f4 100755 --- a/contrib/FastSync/load-utxo-set.sh +++ b/contrib/FastSync/load-utxo-set.sh @@ -66,7 +66,7 @@ cd "$TAR_DIR" IS_DOWNLOADED=false if [ ! -f "$TAR_FILE" ]; then echo "Downloading $UTXO_DOWNLOAD_LINK to $TAR_FILE" - wget "$UTXO_DOWNLOAD_LINK" -q --show-progress + wget "$UTXO_DOWNLOAD_LINK" -c -O $TAR_FILE.partial -q --show-progress && mv $TAR_FILE.partial $TAR_FILE IS_DOWNLOADED=true else echo "$TAR_FILE already exists" @@ -117,4 +117,4 @@ if docker volume inspect generated_bitcoin_wallet_datadir &>/dev/null; then echo -e '\033[33mHow to proceed: If you agree to delete your Bitcoin Core wallet, run "docker volume rm generated_bitcoin_wallet_datadir"\033[0m' else echo "You can now run btcpay again (btcpay-up.sh)" -fi \ No newline at end of file +fi