This commit is contained in:
rootzoll 2018-07-31 21:43:57 +02:00
parent e59068592f
commit a54802070f

View File

@ -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