mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
cln: fix detecting open channels
This commit is contained in:
parent
a0594098cd
commit
e4df55ece6
2 changed files with 2 additions and 1 deletions
|
@ -48,7 +48,7 @@ done
|
|||
# check number of connected peers
|
||||
echo "check for open channels"
|
||||
if [ $LNTYPE = cln ];then
|
||||
openChannels=$($lightningcli_alias listpeers | grep -c '"CHANNELD_NORMAL:Funding transaction locked. Channel announced."')
|
||||
openChannels=$($lightningcli_alias listpeers | grep -c "CHANNELD_NORMAL")
|
||||
elif [ $LNTYPE = lnd ];then
|
||||
openChannels=$($lncli_alias listchannels 2>/dev/null | grep chan_id -c)
|
||||
fi
|
||||
|
|
|
@ -160,6 +160,7 @@ always-use-proxy=true
|
|||
" | sudo tee /home/bitcoin/.lightning/${prefix}config
|
||||
else
|
||||
echo "# The file /home/bitcoin/.lightning/${prefix}config is already present"
|
||||
#TODO look for pluging configs and clear or install
|
||||
fi
|
||||
sudo chown -R bitcoin:bitcoin /mnt/hdd/app-data/.lightning
|
||||
sudo chown -R bitcoin:bitcoin /home/bitcoin/
|
||||
|
|
Loading…
Add table
Reference in a new issue