From c759e879cf8b82c5871dbb166c88788d415b5308 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Fri, 9 Aug 2019 20:07:46 -0500 Subject: [PATCH] Upgrade bitcoind to 18.1 and improve quicksync with SSD --- rootfs/standard/usr/bin/mynode-local-upgrade | 2 ++ rootfs/standard/usr/bin/mynode_post_upgrade.sh | 6 +++--- setup/setup_device.sh | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode-local-upgrade b/rootfs/standard/usr/bin/mynode-local-upgrade index a84f0db9..477ce94e 100755 --- a/rootfs/standard/usr/bin/mynode-local-upgrade +++ b/rootfs/standard/usr/bin/mynode-local-upgrade @@ -42,6 +42,8 @@ if [ "$#" -ge 2 ]; then if [ "$2" = "www" ]; then echo "Restarting www service..." systemctl restart www + elif [ "$2" = "files" ]; then + echo "Only updating files... Done." else # Service not found, reboot echo "Service not found, rebooting device..." diff --git a/rootfs/standard/usr/bin/mynode_post_upgrade.sh b/rootfs/standard/usr/bin/mynode_post_upgrade.sh index 26dafb07..cde2f60e 100755 --- a/rootfs/standard/usr/bin/mynode_post_upgrade.sh +++ b/rootfs/standard/usr/bin/mynode_post_upgrade.sh @@ -5,10 +5,10 @@ source /usr/share/mynode/mynode_config.sh set -x # Shut down main services to save memory and CPU -systemctl stop bitcoind -systemctl stop lnd systemctl stop electrs +systemctl stop lnd systemctl stop quicksync +systemctl stop bitcoind # Install any new software apt -y install pv @@ -23,7 +23,7 @@ uname -a | grep aarch64 if [ $? = 0 ]; then ARCH="aarch64-linux-gnu" 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 CURRENT="" if [ -f $BTC_UPGRADE_URL_FILE ]; then diff --git a/setup/setup_device.sh b/setup/setup_device.sh index dc6bd05a..4be93d32 100755 --- a/setup/setup_device.sh +++ b/setup/setup_device.sh @@ -117,7 +117,7 @@ ARCH="arm-linux-gnueabihf" if [ $IS_ROCK64 = 1 ]; then ARCH="aarch64-linux-gnu" 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 CURRENT="" if [ -f $BTC_UPGRADE_URL_FILE ]; then