mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-21 14:04:15 +02:00
add debug
This commit is contained in:
parent
1906e608ea
commit
fea0b63359
@ -280,6 +280,7 @@ fi
|
||||
clnRunning=$(systemctl status ${netprefix}lightningd.service 2>/dev/null | grep -c running)
|
||||
echo "clnActive=${clnRunning}"
|
||||
if [ ${clnRunning} -eq 1 ] && [ "${LNTYPE}" == "cln" ]; then
|
||||
echo "# $lightningcli_alias getinfo"
|
||||
clnInfo=$($lightningcli_alias getinfo)
|
||||
clnBlockHeight=$(echo "${clnInfo}" | jq -r '.blockheight' | tr -cd '[[:digit:]]')
|
||||
scanProgress=$(echo "scale=2; $clnBlockHeight*100/$total" | bc)
|
||||
@ -291,6 +292,7 @@ if [ ${clnRunning} -eq 1 ] && [ "${LNTYPE}" == "cln" ]; then
|
||||
echo "syncedToChain=0"
|
||||
fi
|
||||
fi
|
||||
echo "# touchscreen check"
|
||||
|
||||
# touchscreen statistics
|
||||
if [ "${touchscreen}" == "1" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user