Browse Source

Do not attempt to delete block folder if failing

Kukks-patch-1
nicolas.dorier 6 years ago
parent
commit
6a6f3718a3
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 2
      contrib/FastSync/load-utxo-set.sh

2
contrib/FastSync/load-utxo-set.sh

@ -82,7 +82,7 @@ if [[ $NBITCOIN_NETWORK == "testnet" ]]; then
fi fi
NETWORK_DIRECTORY="$BITCOIN_DATA_DIR/$NETWORK_DIRECTORY" NETWORK_DIRECTORY="$BITCOIN_DATA_DIR/$NETWORK_DIRECTORY"
[ -d "$NETWORK_DIRECTORY/blocks" ] && rm -rf "$NETWORK_DIRECTORY/blocks" [ -d "$NETWORK_DIRECTORY/blocks" ] && ( rm -rf "$NETWORK_DIRECTORY/blocks" || rm -rf $NETWORK_DIRECTORY/blocks/* )
[ -d "$NETWORK_DIRECTORY/chainstate" ] && rm -rf "$NETWORK_DIRECTORY/chainstate" [ -d "$NETWORK_DIRECTORY/chainstate" ] && rm -rf "$NETWORK_DIRECTORY/chainstate"
[ ! -d "$NETWORK_DIRECTORY" ] && mkdir "$NETWORK_DIRECTORY" [ ! -d "$NETWORK_DIRECTORY" ] && mkdir "$NETWORK_DIRECTORY"

Loading…
Cancel
Save