@ -239,15 +239,8 @@ To run a BACKUP of funds & channels first is recommended.
# give autounlock 5 min after startup to react
sleep 1
else
# check how many times LND was restarted
source <(sudo /home/admin/config.scripts/blitz.statusscan.sh)
if [ ${startcountLightning} -lt 3 ]; then
/home/admin/AAunlockLND.sh
echo "please wait ... update to next screen can be slow"
/home/admin/80scanLND.sh error-report
exit 0
fi
lndSynced=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} --network=${chain}net getinfo 2>/dev/null | jq -r '.synced_to_chain' | grep -c true)
@ -136,7 +136,7 @@ if [ ${lndRunning} -eq 1 ]; then
echo "walletLocked=0"
rpcNotWorking=$(echo ${lndErrorFull} | greap -c 'connection refused')
rpcNotWorking=$(echo ${lndErrorFull} | grep -c 'connection refused')
if [ ${rpcNotWorking} -gt 0 ]; then
lndErrorShort='LND RPC not responding'
lndErrorFull=$(echo "LND RPC is not responding. LND may have problems starting up. Check logs, config files and systemd service. Org-Error: ${lndErrorFull}" | tr -d "'")