From 10bd88da375c9955cbebba0b3cf6ac218188f4bf Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 28 Jan 2022 11:02:19 +0900 Subject: [PATCH] load-utxo-set should check for pruning --- contrib/FastSync/load-utxo-set.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/contrib/FastSync/load-utxo-set.sh b/contrib/FastSync/load-utxo-set.sh index 77df0cc..2f11409 100755 --- a/contrib/FastSync/load-utxo-set.sh +++ b/contrib/FastSync/load-utxo-set.sh @@ -28,6 +28,14 @@ if ! [[ "$NBITCOIN_NETWORK" ]]; then exit 1 fi +if ! [[ "$BTCPAYGEN_ADDITIONAL_FRAGMENTS" == *"opt-save-storage"* ]]; then + echo "Pruning must be enabled, please update BTCPAYGEN_ADDITIONAL_FRAGMENTS by running:" + echo "" + echo 'BTCPAYGEN_ADDITIONAL_FRAGMENTS="$BTCPAYGEN_ADDITIONAL_FRAGMENTS;opt-save-storage-s"' + echo '. btcpay-setup -i' + exit 1 +fi + TAR_FILE="$1" if ! [[ "$UTXO_DOWNLOAD_LINK" ]]; then