Browse Source

UI fix

#146
rootzoll 6 years ago
parent
commit
d00311200f
  1. 5
      home.admin/BBcashoutWallet.sh

5
home.admin/BBcashoutWallet.sh

@ -2,6 +2,8 @@
_temp="./download/dialog.$$" _temp="./download/dialog.$$"
_error="./.error.out" _error="./.error.out"
echo "please wait ..."
# load raspiblitz config data (with backup from old config) # load raspiblitz config data (with backup from old config)
source /mnt/hdd/raspiblitz.conf 2>/dev/null source /mnt/hdd/raspiblitz.conf 2>/dev/null
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
@ -12,6 +14,7 @@ fi
# check if user has money in lightning channels - info about close all # check if user has money in lightning channels - info about close all
openChannels=$(lncli --chain=${network} listchannels 2>/dev/null | jq '.[] | length') openChannels=$(lncli --chain=${network} listchannels 2>/dev/null | jq '.[] | length')
if [ ${#openChannels} -eq 0 ]; then if [ ${#openChannels} -eq 0 ]; then
clear
echo "*** IMPORTANT **********************************" echo "*** IMPORTANT **********************************"
echo "It looks like LND is not responding." echo "It looks like LND is not responding."
echo "Still starting up, is locked or is not running?" echo "Still starting up, is locked or is not running?"
@ -21,12 +24,14 @@ if [ ${#openChannels} -eq 0 ]; then
fi fi
if [ ${openChannels} -gt 0 ]; then if [ ${openChannels} -gt 0 ]; then
dialog --title 'Info' --msgbox 'You still have funds in open Lightning Channels.\nUse CLOSEALL first if you want to cashout all funds.\nNOTICE: Just confirmed on-chain funds can be moved.' 7 58 dialog --title 'Info' --msgbox 'You still have funds in open Lightning Channels.\nUse CLOSEALL first if you want to cashout all funds.\nNOTICE: Just confirmed on-chain funds can be moved.' 7 58
echo "please wait ..."
fi fi
# check if money is waiting to get confirmed # check if money is waiting to get confirmed
unconfirmed=$(lncli --chain=${network} walletbalance | grep '"unconfirmed_balance"' | cut -d '"' -f4) unconfirmed=$(lncli --chain=${network} walletbalance | grep '"unconfirmed_balance"' | cut -d '"' -f4)
if [ ${unconfirmed} -gt 0 ]; then if [ ${unconfirmed} -gt 0 ]; then
dialog --title 'Info' --msgbox "Still waiting confirmation for ${unconfirmed} sat.\nNOTICE: Just confirmed on-chain funds can be moved." 6 58 dialog --title 'Info' --msgbox "Still waiting confirmation for ${unconfirmed} sat.\nNOTICE: Just confirmed on-chain funds can be moved." 6 58
echo "please wait ..."
fi fi
# get available amount in on-chain wallet # get available amount in on-chain wallet

Loading…
Cancel
Save