From 4f5251c41c40372f43b1277319d726443dfd0bf9 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Wed, 22 Aug 2018 19:32:26 +0200 Subject: [PATCH] fix --- home.admin/00infoBlitz.sh | 2 +- home.admin/80scanLND.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/00infoBlitz.sh b/home.admin/00infoBlitz.sh index 04f59eb..142b774 100755 --- a/home.admin/00infoBlitz.sh +++ b/home.admin/00infoBlitz.sh @@ -171,7 +171,7 @@ else ln_alias=$(echo "${ln_getInfo}" | grep "alias" | cut -d '"' -f4) ln_sync=$(echo "${ln_getInfo}" | grep "synced_to_chain" | grep "true" -c) if [ ${ln_sync} -eq 0 ]; then - item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "(height" | tail -n1 | awk '{print $11}' | tr -dc '0-9') + item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "(height" | tail -n1 | awk '{print $10} {print $11} {print $12}' | tr -dc '0-9') total=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.blocks') ln_baseInfo="${color_red} waiting for chain sync" ln_channelInfo="${item}/${total}" diff --git a/home.admin/80scanLND.sh b/home.admin/80scanLND.sh index 8e8d4d7..19bd392 100755 --- a/home.admin/80scanLND.sh +++ b/home.admin/80scanLND.sh @@ -9,7 +9,7 @@ item=0 chain="$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')" gotData=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep -c "(height") if [ ${gotData} -gt 0 ]; then - item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "(height" | tail -n1 | awk '{print $11}' | tr -dc '0-9') + item=$(sudo -u bitcoin tail -n 100 /mnt/hdd/lnd/logs/${network}/${chain}net/lnd.log | grep "(height" | tail -n1 | awk '{print $10} {print $11} {print $12} | tr -dc '0-9') fi # get total number of blocks