mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-06-18 21:02:13 +02:00
fix issue #27
This commit is contained in:
parent
e59068592f
commit
a54802070f
@ -169,14 +169,23 @@ if [ ${lndSyncing} -eq 0 ]; then
|
|||||||
echo "OK - wait for LND to be synced"
|
echo "OK - wait for LND to be synced"
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
|
|
||||||
# show sync status
|
# show sync status
|
||||||
./80scanLND.sh
|
./80scanLND.sh
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
||||||
# break loop when synced
|
# break loop when synced
|
||||||
lndSyncing=$(sudo -u bitcoin lncli getinfo | jq -r '.synced_to_chain' | grep -c true)
|
lndSyncing=$(sudo -u bitcoin lncli getinfo | jq -r '.synced_to_chain' | grep -c true)
|
||||||
if [ ${lndSyncing} -eq 1 ]; then
|
if [ ${lndSyncing} -eq 1 ]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# break loop when wallet is locked
|
||||||
|
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
|
||||||
|
if [ ${locked} -eq 1 ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
clear
|
clear
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user