add debug

This commit is contained in:
rootzoll 2021-08-29 21:17:03 +02:00
parent 1906e608ea
commit fea0b63359

View file

@ -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