1
0

load-utxo-set should check for pruning

This commit is contained in:
nicolas.dorier
2022-01-28 11:02:19 +09:00
parent 61c059fc68
commit 10bd88da37

View File

@@ -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