Browse Source

use total channels instead of active

#146
rootzoll 6 years ago
parent
commit
2047a0b456
  1. 2
      home.admin/00mainMenu.sh

2
home.admin/00mainMenu.sh

@ -187,7 +187,7 @@ else
MOBILE "Connect Mobile Wallet") MOBILE "Connect Mobile Wallet")
# Depending Options # Depending Options
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} listchannels 2>/dev/null | grep chan_id -c) openChannels=$(sudo -u bitcoin /usr/local/bin/lncli --chain=${network} listchannels 2>/dev/null | jq '.[] | length')
if [ ${openChannels} -gt 0 ]; then if [ ${openChannels} -gt 0 ]; then
OPTIONS+=(CLOSEALL "Close all open Channels") OPTIONS+=(CLOSEALL "Close all open Channels")
fi fi

Loading…
Cancel
Save