|
@ -38,7 +38,7 @@ fi |
|
|
# check if money is waiting to get confirmed |
|
|
# check if money is waiting to get confirmed |
|
|
unconfirmed=$(lncli --chain=${network} --network=${chain}net walletbalance | grep '"unconfirmed_balance"' | cut -d '"' -f4) |
|
|
unconfirmed=$(lncli --chain=${network} --network=${chain}net walletbalance | grep '"unconfirmed_balance"' | cut -d '"' -f4) |
|
|
if [ ${unconfirmed} -gt 0 ]; then |
|
|
if [ ${unconfirmed} -gt 0 ]; then |
|
|
whiptail --title 'Info' --yes-button='Cashout Anyway' --no-button='Go Back' --yesno "Still waiting confirmation for ${unconfirmed} sat.\nNOTICE: Just confirmed on-chain funds can be moved." 6 58 |
|
|
whiptail --title 'Info' --yes-button='Cashout Anyway' --no-button='Go Back' --yesno "Still waiting confirmation for ${unconfirmed} sat.\nNOTICE: Just confirmed on-chain funds can be moved." 8 58 |
|
|
if [ $? -eq 1 ]; then |
|
|
if [ $? -eq 1 ]; then |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|