diff options
| author | Adam Soltys <[email protected]> | 2023-04-11 19:22:10 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-04-11 19:22:14 +0000 |
| commit | f8b0e547e6cf055636f765833e430cf06549fcbe (patch) | |
| tree | 3a503e082a788af7fb77b5befb2663515d5d0632 /watcher.sh | |
| parent | 4d480b400a3a7d6990aac4a0cacccd86c0fd9cd3 (diff) | |
| download | coinos-server-f8b0e547e6cf055636f765833e430cf06549fcbe.tar.gz coinos-server-f8b0e547e6cf055636f765833e430cf06549fcbe.zip | |
upgrade websocket lib
Diffstat (limited to 'watcher.sh')
| -rwxr-xr-x | watcher.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
