Browse Source

closechannels update

#146
rootzoll 6 years ago
parent
commit
f5a5bbaa34
  1. 2
      home.admin/95switchMainTest.sh
  2. 22
      home.admin/BBcloseAllChannels.sh

2
home.admin/95switchMainTest.sh

@ -65,7 +65,7 @@ if [ ${lndInstalled} -gt 0 ]; then
if [ ${openChannels} -gt 0 ]; then
echo ""
echo "!!!!!!!!!!!!!!!!!!!"
echo "FAIL - You have still open channels and could loose funds !! - close those first with lncli closeallchannels"
echo "FAIL - You have still open channels and could loose funds !! - close those first with 'lncli closeallchannels' or main menu option."
echo "!!!!!!!!!!!!!!!!!!!"
exit 1
else

22
home.admin/BBcloseAllChannels.sh

@ -30,24 +30,10 @@ fi
# execute command
if [ ${#command} -gt 0 ]; then
result=$($command)
fi
# on no result TODO: check if there is any result at all
if [ ${#result} -eq 0 ]; then
echo "Sorry something went wrong - thats unusual."
echo ""
exit 1
${command}
fi
# when result is available
echo "$result"
# TODO parse out closing transactions and monitor those with blockchain for confirmations
# TODO give final info - let user know if its now safe to update RaspiBlitz or change test/main
# ask to make sure user has list for seed words still safe
echo ""
echo "******************************"
echo "INFO"
echo "******************************"
echo "OK your list of channels looks now like this:"
sleep 2
lnchannels

Loading…
Cancel
Save