From db0084d5470cb105769cf3aaa60554fcbe865c33 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 15 Apr 2019 22:21:27 +0100 Subject: [PATCH] open channel info --- home.admin/BBcashoutWallet.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home.admin/BBcashoutWallet.sh b/home.admin/BBcashoutWallet.sh index f90bc2ec2..6e2948cf5 100755 --- a/home.admin/BBcashoutWallet.sh +++ b/home.admin/BBcashoutWallet.sh @@ -26,15 +26,23 @@ if [ ${#openChannels} -eq 0 ]; then fi 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 + whiptail --title 'Info' --yes-button='Cashout Anyway' --no-button='Go Back' --yesno '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' 10 56 + if [ $? -eq 1 ]; then + exit 1 + fi echo "please wait ..." + exit 1 fi # check if money is waiting to get confirmed unconfirmed=$(lncli --chain=${network} --network=${chain}net walletbalance | grep '"unconfirmed_balance"' | cut -d '"' -f4) 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 + if [ $? -eq 1 ]; then + exit 1 + fi echo "please wait ..." + exit 1 fi # get available amount in on-chain wallet