80scanLND handles bitcoin info

This commit is contained in:
Christian Rotzoll 2019-04-16 23:38:59 +01:00
parent b6dd3953a6
commit 7473b498a9
2 changed files with 6 additions and 13 deletions

View File

@ -229,19 +229,12 @@ To run a BACKUP of funds & channels first is recommended.
echo "${network} error: ${clienterror}"
fi
# normal info
boxwidth=40
l1="Waiting for ${network}d to get ready.\n"
l2="---> ${clienterror/error*:/}\n"
l3="Can take longer if device was off."
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
# after 2 min show complete long string (full detail)
if [ ${uptimeSeconds} -gt 120 ]; then
boxwidth=80
l2="${clienterror}\n"
l3="CTRL+C => terminal"
# let 80scanLND script to the info to use
/home/admin/80scanLND.sh
if [ $? -gt 0 ]; then
exit 0
fi
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
else
locked=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
if [ ${locked} -gt 0 ]; then

View File

@ -17,7 +17,7 @@ if [ ${bitcoinActive} -eq 0 ]; then
# On Bitcoin Error
####################
height=6
height=5
width=42
title="Blockchain Info"
if [ ${uptime} -gt 300 ]; then