mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-11 05:13:13 +02:00
let scanLND handle bitcoin
This commit is contained in:
@@ -198,22 +198,22 @@ while :
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check if bitcoin is ready
|
# check if bitcoin is ready
|
||||||
sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>error.tmp
|
#sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo 1>/dev/null 2>error.tmp
|
||||||
clienterror=`cat error.tmp`
|
#clienterror=`cat error.tmp`
|
||||||
rm error.tmp
|
#rm error.tmp
|
||||||
if [ ${#clienterror} -gt 0 ]; then
|
#if [ ${#clienterror} -gt 0 ]; then
|
||||||
boxwidth=40
|
# boxwidth=40
|
||||||
l1="Waiting for ${network}d to get ready.\n"
|
# l1="Waiting for ${network}d to get ready.\n"
|
||||||
l2="---> ${clienterror/error*:/}\n"
|
# l2="---> ${clienterror/error*:/}\n"
|
||||||
l3="Can take longer if device was off."
|
# l3="Can take longer if device was off."
|
||||||
uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
# uptimeSeconds="$(cat /proc/uptime | grep -o '^[0-9]\+')"
|
||||||
if [ ${uptimeSeconds} -gt 600 ]; then
|
# if [ ${uptimeSeconds} -gt 600 ]; then
|
||||||
l3="!!Please login for more details!!"
|
# l3="!!Please login for more details!!"
|
||||||
fi
|
# fi
|
||||||
dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
# dialog --backtitle "RaspiBlitz ${codeVersion} (${localip}) - Welcome Back" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
sleep 5
|
# sleep 5
|
||||||
continue
|
# continue
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# check if locked
|
# check if locked
|
||||||
locked=$(sudo -u bitcoin lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
locked=$(sudo -u bitcoin lncli --chain=${network} --network=${chain}net getinfo 2>&1 | grep -c unlock)
|
||||||
|
Reference in New Issue
Block a user