Browse Source

Detect Filtering block

dev
rootzoll 6 years ago
parent
commit
66061d17fd
  1. 7
      home.admin/80scanLND.sh

7
home.admin/80scanLND.sh

@ -18,7 +18,12 @@ if [ ${#item} -eq 0 ]; then
item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "Caught up to height" | tail -n1 | cut -d ']' -f2 | tr -dc '0-9') item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "Caught up to height" | tail -n1 | cut -d ']' -f2 | tr -dc '0-9')
fi fi
# TODO next fallback try later here if necessary # 3) Third try the "LNWL: Filtering block" - thats the usual on later starts
if [ ${#item} -eq 0 ]; then
item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "LNWL: Filtering block" | tail -n1 | cut -d ' ' -f7 | tr -dc '0-9')
fi
# if no progress info
if [ ${#item} -eq 0 ]; then if [ ${#item} -eq 0 ]; then
item="?" item="?"
fi fi

Loading…
Cancel
Save