Merge pull request #2 from interbiznw/master
added blockchain download for faster sync
This commit is contained in:
commit
69bef940ae
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue