Merge pull request #2 from interbiznw/master

added blockchain download for faster sync
This commit is contained in:
J62 2018-04-13 11:33:27 -07:00 committed by GitHub
commit 69bef940ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 0 deletions

View File

@ -46,12 +46,28 @@ git clone -b explorer-btcp https://github.com/BTCPrivate/BitcoinPrivate
# Build Bitcoin Private
./BitcoinPrivate/btcputil/build.sh -j$(nproc)
#Make hidden .btcprivate dir because the daemon has not ran and created the folder yet
if [ ! -e ~/.btcprivate/ ]
then
echo "Bitcoin Private Data Dir(.btcprivate) does not exist in the current user home directory, creating folder..."
mkdir ~/.btcprivate
fi
#Then download the blockchain.tar.gz and extract to speed up the initial syncing when first starting
echo "Bitcoin Private Data Dir(.btcprivate) does exist in the current user home directory. Downloading and Extracting files"
cd ~/.btcprivate
wget https://storage.googleapis.com/btcpblockchain/blockchain.tar.gz
tar -zxvf blockchain.tar.gz
echo "Downloading and extracting of blockchain files completed"
# Make initial, empty btcprivate.conf if needed
if [ ! -e ~/.btcprivate/btcprivate.conf ]
then
touch ~/.btcprivate/btcprivate.conf
fi
}
install_nvm_npm() {