Upgrade bitcoind to 18.1 and improve quicksync with SSD

This commit is contained in:
Taylor Helsper 2019-08-09 20:07:46 -05:00
parent 3a1c2411ec
commit c759e879cf
3 changed files with 6 additions and 4 deletions

View File

@ -42,6 +42,8 @@ if [ "$#" -ge 2 ]; then
if [ "$2" = "www" ]; then if [ "$2" = "www" ]; then
echo "Restarting www service..." echo "Restarting www service..."
systemctl restart www systemctl restart www
elif [ "$2" = "files" ]; then
echo "Only updating files... Done."
else else
# Service not found, reboot # Service not found, reboot
echo "Service not found, rebooting device..." echo "Service not found, rebooting device..."

View File

@ -5,10 +5,10 @@ source /usr/share/mynode/mynode_config.sh
set -x set -x
# Shut down main services to save memory and CPU # Shut down main services to save memory and CPU
systemctl stop bitcoind
systemctl stop lnd
systemctl stop electrs systemctl stop electrs
systemctl stop lnd
systemctl stop quicksync systemctl stop quicksync
systemctl stop bitcoind
# Install any new software # Install any new software
apt -y install pv apt -y install pv
@ -23,7 +23,7 @@ uname -a | grep aarch64
if [ $? = 0 ]; then if [ $? = 0 ]; then
ARCH="aarch64-linux-gnu" ARCH="aarch64-linux-gnu"
fi fi
BTC_UPGRADE_URL=https://bitcoin.org/bin/bitcoin-core-0.18.0/bitcoin-0.18.0-$ARCH.tar.gz BTC_UPGRADE_URL=https://bitcoin.org/bin/bitcoin-core-0.18.1/bitcoin-0.18.1-$ARCH.tar.gz
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url
CURRENT="" CURRENT=""
if [ -f $BTC_UPGRADE_URL_FILE ]; then if [ -f $BTC_UPGRADE_URL_FILE ]; then

View File

@ -117,7 +117,7 @@ ARCH="arm-linux-gnueabihf"
if [ $IS_ROCK64 = 1 ]; then if [ $IS_ROCK64 = 1 ]; then
ARCH="aarch64-linux-gnu" ARCH="aarch64-linux-gnu"
fi fi
BTC_UPGRADE_URL=https://bitcoin.org/bin/bitcoin-core-0.18.0/bitcoin-0.18.0-$ARCH.tar.gz BTC_UPGRADE_URL=https://bitcoin.org/bin/bitcoin-core-0.18.1/bitcoin-0.18.1-$ARCH.tar.gz
BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url BTC_UPGRADE_URL_FILE=/home/bitcoin/.mynode/.btc_url
CURRENT="" CURRENT=""
if [ -f $BTC_UPGRADE_URL_FILE ]; then if [ -f $BTC_UPGRADE_URL_FILE ]; then