From 094e53eae399391a03feb67697c0d75f3e97d239 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Wed, 25 Dec 2019 14:20:54 +0900 Subject: [PATCH] Do not move tar file if mainnet --- contrib/FastSync/save-utxo-set-in-bitcoind.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/FastSync/save-utxo-set-in-bitcoind.sh b/contrib/FastSync/save-utxo-set-in-bitcoind.sh index 35dcd37..a63c920 100755 --- a/contrib/FastSync/save-utxo-set-in-bitcoind.sh +++ b/contrib/FastSync/save-utxo-set-in-bitcoind.sh @@ -30,6 +30,6 @@ cd "$NETWORK_DIRECTORY" tar -cvf "$TAR_NAME" "blocks/" echo "Adding $NETWORK_DIRECTORY/chainstate/*" tar -rvf "$TAR_NAME" "chainstate/" -mv "$TAR_NAME" "/data/$TAR_NAME" +[[ $NBITCOIN_NETWORK == "mainnet" ]] || mv "$TAR_NAME" "/data/$TAR_NAME" echo "TAR file created to /data/$TAR_NAME" exit