Browse Source

fix issue #27

#146
rootzoll 6 years ago
parent
commit
a54802070f
  1. 9
      home.admin/70initLND.sh

9
home.admin/70initLND.sh

@ -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…
Cancel
Save