mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-12 00:19:15 +00:00
Upgrade bitcoind to 18.1 and improve quicksync with SSD
This commit is contained in:
parent
3a1c2411ec
commit
c759e879cf
|
@ -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..."
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user