mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
open channel check
This commit is contained in:
parent
ed7b4beefd
commit
f3f77d13dd
1 changed files with 4 additions and 15 deletions
|
@ -29,19 +29,8 @@ if [ ${#command} -gt 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "OK"
|
echo "OK - wait a 5 seconds"
|
||||||
sleep 2
|
sleep 5
|
||||||
|
|
||||||
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 "Your Open Channel List (to check):"
|
||||||
|
lnchannels
|
||||||
|
|
Loading…
Add table
Reference in a new issue