From f8b0e547e6cf055636f765833e430cf06549fcbe Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 11 Apr 2023 19:22:10 +0000 Subject: upgrade websocket lib --- watcher.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'watcher.sh') diff --git a/watcher.sh b/watcher.sh index 5afe3a5a..405aecfb 100755 --- a/watcher.sh +++ b/watcher.sh @@ -6,7 +6,7 @@ while true do f=/home/adam/coinos-server/data/funds/$(date +"%m-%d-%y-%T").json docker exec -it cl lightning-cli listfunds > $f - lnc=$(cat $f | jr '[.channels[] | .channel_sat] | add') + lnc=$(cat $f | jr '[.channels[] | select(.state == "CHANNELD_NORMAL") | .channel_sat] | add') lnw=$(cat $f | jr '[.outputs[] | .value] | add') ln=$(node -pe "$lnc + $lnw") bc=$(docker exec -it bc bitcoin-cli getbalance | jr) -- cgit v1.2.3