From d4d633552f7de725415103dc8bab1cb66b8751d6 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 28 May 2019 00:49:39 +0200 Subject: [PATCH 1/3] fix presync progress --- home.admin/00infoLCD.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 4bc0fc3..92935fb 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -83,8 +83,8 @@ while : # when in presync - get more info on progress elif [ "${state}" = "presync" ]; then - # get blockchain sync progress - blockchaininfo="$(sudo -u root ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 2>/dev/null)" + # sudo -u root bitcoin-cli --conf=/home/admin/assets/bitcoin.conf getblockchaininfo + blockchaininfo="$(sudo -u root ${network}-cli --conf=/home/admin/assets/${network}.conf getblockchaininfo 2>/dev/null)" message="starting" if [ ${#blockchaininfo} -gt 0 ]; then message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')" From 0213fb09bbb0d10871168cd2ec828bbde2f14492 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 28 May 2019 01:08:42 +0200 Subject: [PATCH 2/3] show bitcoin presync progress --- home.admin/00infoLCD.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home.admin/00infoLCD.sh b/home.admin/00infoLCD.sh index 92935fb..660e8ef 100755 --- a/home.admin/00infoLCD.sh +++ b/home.admin/00infoLCD.sh @@ -83,8 +83,7 @@ while : # when in presync - get more info on progress elif [ "${state}" = "presync" ]; then - # sudo -u root bitcoin-cli --conf=/home/admin/assets/bitcoin.conf getblockchaininfo - blockchaininfo="$(sudo -u root ${network}-cli --conf=/home/admin/assets/${network}.conf getblockchaininfo 2>/dev/null)" + blockchaininfo="$(sudo -u root bitcoin-cli --conf=/home/admin/assets/bitcoin.conf getblockchaininfo 2>/dev/null)" message="starting" if [ ${#blockchaininfo} -gt 0 ]; then message="$(echo "${blockchaininfo}" | jq -r '.verificationprogress')" From 4ffc2370faf698b18700cc33713696e02446ef5e Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Tue, 28 May 2019 01:39:04 +0200 Subject: [PATCH 3/3] return info --- home.admin/AAunlockLND.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home.admin/AAunlockLND.sh b/home.admin/AAunlockLND.sh index 8bbc323..fd3c45b 100755 --- a/home.admin/AAunlockLND.sh +++ b/home.admin/AAunlockLND.sh @@ -30,5 +30,6 @@ while : echo "" echo "network(${network}) chain(${chain})" sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log - echo "Wallet still locked - please try again or Cancel with CTRL+C" + echo "Wallet still locked - please try again or" + echo "Cancel with CTRL+C - back to setup with command: raspiblitz" done