mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
unlock while waiting
This commit is contained in:
parent
f1e0afda95
commit
29f8b1ebba
1 changed files with 3 additions and 3 deletions
|
@ -111,12 +111,11 @@ waitUntilChainNetworkIsReady()
|
||||||
fi
|
fi
|
||||||
boxwidth=40
|
boxwidth=40
|
||||||
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
dialog --backtitle "RaspiBlitz ${localip} - Welcome" --infobox "$l1$l2$l3" 5 ${boxwidth}
|
||||||
sleep 5
|
|
||||||
else
|
else
|
||||||
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
|
locked=$(sudo tail -n 1 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c unlock)
|
||||||
if [ ${locked} -gt 0 ]; then
|
if [ ${locked} -gt 0 ]; then
|
||||||
#return from wait loop, lets unlock and then it will return to this script
|
./AAunlockLND.sh
|
||||||
return
|
echo "please wait ..."
|
||||||
fi
|
fi
|
||||||
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
|
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
|
||||||
if [ ${lndSynced} -eq 0 ]; then
|
if [ ${lndSynced} -eq 0 ]; then
|
||||||
|
@ -126,6 +125,7 @@ waitUntilChainNetworkIsReady()
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
sleep 5
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue