mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
ui fixes
This commit is contained in:
@@ -173,7 +173,8 @@ else
|
|||||||
if [ ${ln_sync} -eq 0 ]; then
|
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 $9} {print $10} {print $11} {print $12}' | 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 $9} {print $10} {print $11} {print $12}' | tr -dc '0-9')
|
||||||
total=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.blocks')
|
total=$(sudo -u bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.blocks')
|
||||||
if [ "${item}" = "${total}" ]; then
|
checkItem=$(echo "${item}" | grep '000' -c)
|
||||||
|
if [ ${checkItem} -eq 0 ]; then
|
||||||
item="?"
|
item="?"
|
||||||
fi
|
fi
|
||||||
ln_baseInfo="${color_red} waiting for chain sync"
|
ln_baseInfo="${color_red} waiting for chain sync"
|
||||||
|
Reference in New Issue
Block a user