|
|
@ -168,14 +168,14 @@ if [ "$wallet_unlocked" -gt 0 ] ; then |
|
|
|
alias_color="${color_red}" |
|
|
|
ln_alias="Wallet Locked" |
|
|
|
else |
|
|
|
ln_getInfo=$(/usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert getinfo 2>/dev/null) |
|
|
|
ln_getInfo=$(sudo -u bitcoin /usr/local/bin/lncli --macaroonpath=${lnd_macaroon_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert getinfo 2>/dev/null) |
|
|
|
ln_external=$(echo "${ln_getInfo}" | grep "uris" -A 1 | tr -d '\n' | cut -d '"' -f4) |
|
|
|
alias_color="${color_grey}" |
|
|
|
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 |
|
|
|
if [ ${#ln_getInfo} -eq 0 ]; then |
|
|
|
ln_baseInfo="${color_red} Not Started | No Ready Yet" |
|
|
|
ln_baseInfo="${color_red} Not Started | Not Ready Yet" |
|
|
|
else |
|
|
|
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') |
|
|
|