mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +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)
|
||||
echo "clnActive=${clnRunning}"
|
||||
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"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue