mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
add clnblockheight
This commit is contained in:
parent
25e695306f
commit
90669b40d0
1 changed files with 4 additions and 0 deletions
|
@ -272,6 +272,10 @@ fi
|
||||||
clnRunning=$(systemctl status ${netprefix}lightningd.service 2>/dev/null | grep -c running)
|
clnRunning=$(systemctl status ${netprefix}lightningd.service 2>/dev/null | grep -c running)
|
||||||
echo "clnActive=${clnRunning}"
|
echo "clnActive=${clnRunning}"
|
||||||
if [ ${clnRunning} -eq 1 ]; then
|
if [ ${clnRunning} -eq 1 ]; then
|
||||||
|
|
||||||
|
clnInfo=$(${netprefix}lightning-cli getinfo)
|
||||||
|
clnBlockHeight=$(echo "${clnInfo}" | jq -r '.blockheight' | tr -cd '[[:digit:]]')
|
||||||
|
echo "clnBlockHeight=${clnBlockHeight}"
|
||||||
echo "# TODO: cln status statistics"
|
echo "# TODO: cln status statistics"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue