mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 20:16:22 +02:00
moved node address to infoscreen
This commit is contained in:
@@ -150,13 +150,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# LIGHTNING NETWORK
|
# LIGHTNING NETWORK
|
||||||
ln_external=$(sudo cat /mnt/hdd/tor/lnd9735/hostname 2>/dev/null)
|
ln_external=$(lncli getinfo | grep "uris" -A 2 | tr -d '\n' | cut -d '"' -f4)
|
||||||
if [ ${#ln_external} -eq 0 ]; then
|
|
||||||
ln_external=" ${public_ip}:9735"
|
|
||||||
else
|
|
||||||
torInfo="+ TOR"
|
|
||||||
fi
|
|
||||||
ln_external="${ln_external}:9735"
|
|
||||||
|
|
||||||
# get LND info
|
# get LND info
|
||||||
/usr/local/bin/lncli --macaroonpath=${lnd_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert getinfo 2>&1 | grep "Please unlock" >/dev/null
|
/usr/local/bin/lncli --macaroonpath=${lnd_dir}/readonly.macaroon --tlscertpath=${lnd_dir}/tls.cert getinfo 2>&1 | grep "Please unlock" >/dev/null
|
||||||
|
@@ -60,9 +60,6 @@ else
|
|||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
# set node address as backtitle
|
|
||||||
BACKTITLE=$(lncli getinfo | grep "uris" -A 2 | tr -d '\n' | cut -d '"' -f4)
|
|
||||||
|
|
||||||
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
|
chain=$(${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
|
||||||
switchOption="to MAINNET"
|
switchOption="to MAINNET"
|
||||||
if [ "${chain}" = "main" ]; then
|
if [ "${chain}" = "main" ]; then
|
||||||
|
Reference in New Issue
Block a user