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