From 0fbeb40ed95f117b432ef7ea129f72402ac7ef95 Mon Sep 17 00:00:00 2001 From: J62 Date: Fri, 13 Apr 2018 08:46:39 -0700 Subject: [PATCH 1/5] added blockchain download and extract --- btcp_store_demo.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index b5552b3..d1d055a 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -46,12 +46,26 @@ git clone -b explorer-btcp https://github.com/BTCPrivate/BitcoinPrivate # Build Bitcoin Private ./BitcoinPrivate/btcputil/build.sh -j$(nproc) +#Make +if [ ! -e ~/.btcprivate/ ] +then + echo "does not exist, creating folder" + mkdir ~/.btcprivate +fi + echo "folder does exist..copying files" + +wget https://storage.googleapis.com/btcp-blockchain/BTCprivate.7z +sudo apt install p7zip-full +7z x BTCprivate.7z + # Make initial, empty btcprivate.conf if needed if [ ! -e ~/.btcprivate/btcprivate.conf ] then touch ~/.btcprivate/btcprivate.conf fi + + } install_nvm_npm() { @@ -159,11 +173,11 @@ case "$response" in esac -install_nvm_npm +##install_nvm_npm #install_mongodb -install_bitcore +##install_bitcore echo "Complete." echo "" From 2bfa8272e3d47e675cb591447c5389cd518ced6a Mon Sep 17 00:00:00 2001 From: J62 Date: Fri, 13 Apr 2018 08:47:41 -0700 Subject: [PATCH 2/5] removed commented out lines for testing --- btcp_store_demo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index d1d055a..4e79261 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -173,11 +173,11 @@ case "$response" in esac -##install_nvm_npm +install_nvm_npm #install_mongodb -##install_bitcore +install_bitcore echo "Complete." echo "" From 403d9860b742d9f50459fdcfd65b3c273674a3b3 Mon Sep 17 00:00:00 2001 From: J62 Date: Fri, 13 Apr 2018 08:51:30 -0700 Subject: [PATCH 3/5] expanded on comments --- btcp_store_demo.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index 4e79261..d7e6e76 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -46,17 +46,19 @@ git clone -b explorer-btcp https://github.com/BTCPrivate/BitcoinPrivate # Build Bitcoin Private ./BitcoinPrivate/btcputil/build.sh -j$(nproc) -#Make +#Make hidden .btcprivate dir because the daemon has not ran and created the folder yet +#Then download the blockchain zip and extract to speed up the initial syncing when first starting if [ ! -e ~/.btcprivate/ ] then - echo "does not exist, creating folder" + echo "Bitcoin Private Data Dir(.btcprivate) does not exist in the current user home directory, creating folder..." mkdir ~/.btcprivate fi - echo "folder does exist..copying files" + echo "Bitcoin Private Data Dir(.btcprivate) does exist in the current user home directory. Downloading and Extracting files" wget https://storage.googleapis.com/btcp-blockchain/BTCprivate.7z sudo apt install p7zip-full 7z x BTCprivate.7z + echo "Downloading and extracting of blockchain files completed" # Make initial, empty btcprivate.conf if needed if [ ! -e ~/.btcprivate/btcprivate.conf ] From 8326c1a3132744a070fc9b18746a473ba7f42f62 Mon Sep 17 00:00:00 2001 From: J62 Date: Fri, 13 Apr 2018 10:49:40 -0700 Subject: [PATCH 4/5] update blockchain download url and remove 7z --- btcp_store_demo.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index d7e6e76..802148f 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -53,12 +53,11 @@ then echo "Bitcoin Private Data Dir(.btcprivate) does not exist in the current user home directory, creating folder..." mkdir ~/.btcprivate fi - echo "Bitcoin Private Data Dir(.btcprivate) does exist in the current user home directory. Downloading and Extracting files" - -wget https://storage.googleapis.com/btcp-blockchain/BTCprivate.7z -sudo apt install p7zip-full -7z x BTCprivate.7z - echo "Downloading and extracting of blockchain files completed" +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 ] From 82252655423e45c2527d8dfb2c346b98ffad6e8a Mon Sep 17 00:00:00 2001 From: J62 Date: Fri, 13 Apr 2018 11:19:29 -0700 Subject: [PATCH 5/5] Update btcp_store_demo.sh --- btcp_store_demo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/btcp_store_demo.sh b/btcp_store_demo.sh index 802148f..e703160 100755 --- a/btcp_store_demo.sh +++ b/btcp_store_demo.sh @@ -47,12 +47,13 @@ git clone -b explorer-btcp https://github.com/BTCPrivate/BitcoinPrivate ./BitcoinPrivate/btcputil/build.sh -j$(nproc) #Make hidden .btcprivate dir because the daemon has not ran and created the folder yet -#Then download the blockchain zip and extract to speed up the initial syncing when first starting 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