nicolas.dorier
6 years ago
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
1 changed files with
5 additions and
5 deletions
-
contrib/FastSync/load-utxo-set.sh
|
|
@ -36,18 +36,18 @@ if ! [[ "$UTXO_DOWNLOAD_LINK" ]] && ! [[ "$TAR_FILE" ]]; then |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
BITCOIN_DATA_DIR="/var/lib/docker/volumes/generated_bitcoin_datadir/_data" |
|
|
|
[ ! -d "$BITCOIN_DATA_DIR" ] && mkdir -p "$BITCOIN_DATA_DIR" |
|
|
|
|
|
|
|
if [[ "$TAR_FILE" ]]; then |
|
|
|
TAR_NAME="$(basename $TAR_FILE)" |
|
|
|
else |
|
|
|
BITCOIN_DATA_DIR="/var/lib/docker/volumes/generated_bitcoin_datadir/_data" |
|
|
|
[ ! -d "$BITCOIN_DATA_DIR" ] && mkdir -p "$BITCOIN_DATA_DIR" |
|
|
|
TAR_NAME="$(basename $UTXO_DOWNLOAD_LINK)" |
|
|
|
TAR_FILE="$BITCOIN_DATA_DIR/$TAR_NAME" |
|
|
|
fi |
|
|
|
|
|
|
|
cp "utxo-sets" "$BITCOIN_DATA_DIR/utxo-sets" |
|
|
|
cd "$BITCOIN_DATA_DIR" |
|
|
|
TAR_DIR="$(dirname "$TAR_FILE")" |
|
|
|
cp "utxo-sets" "$TAR_DIR/utxo-sets" |
|
|
|
cd "$TAR_DIR" |
|
|
|
IS_DOWNLOADED=false |
|
|
|
if [ ! -f "$TAR_FILE" ]; then |
|
|
|
echo "Downloading $UTXO_DOWNLOAD_LINK to $TAR_FILE" |
|
|
|