mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
add debug
This commit is contained in:
parent
1906e608ea
commit
fea0b63359
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue