From f3f77d13dda478e2c5fed77afaa0d03c7d734ba1 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Thu, 23 Aug 2018 18:31:43 +0200 Subject: [PATCH] open channel check --- home.admin/BBcloseAllChannels.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/home.admin/BBcloseAllChannels.sh b/home.admin/BBcloseAllChannels.sh index 882a17688..c1fa0d3b5 100755 --- a/home.admin/BBcloseAllChannels.sh +++ b/home.admin/BBcloseAllChannels.sh @@ -29,19 +29,8 @@ if [ ${#command} -gt 0 ]; then fi echo "" -echo "OK" -sleep 2 - -openChannels=$(sudo -u bitcoin /usr/local/bin/lncli listchannels 2>/dev/null | grep chan_id -c) -if [ ${openChannels} -gt 0 ]; then - echo "" - echo "*******************" - echo "OK All Channels are closed now." - echo "You can now switch test/main or update RaspiBlitz safely, as long as you got your CIPHER WORD LIST SEED." - echo "*******************" -else - echo "!! WARNING you still have open channels:" - lnchannels -fi - +echo "OK - wait a 5 seconds" +sleep 5 +echo "Your Open Channel List (to check):" +lnchannels