mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 12:10:33 +02:00
cln: fix detecting open channels
This commit is contained in:
@@ -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/
|
||||
|
Reference in New Issue
Block a user