From 8101d467bd48084814de38ac23d86067644ae2ef Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 27 Apr 2022 07:14:45 +0100 Subject: [PATCH] fix sats amount display in LND channel open dialog --- home.admin/BBopenChannel.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/home.admin/BBopenChannel.sh b/home.admin/BBopenChannel.sh index c614eb945..517ff8d10 100755 --- a/home.admin/BBopenChannel.sh +++ b/home.admin/BBopenChannel.sh @@ -33,9 +33,9 @@ if [ ${chainOutSync} -eq 1 ]; then if [ $LNTYPE = cl ];then echo "# FAIL PRECHECK - 'lightning-cli getinfo' blockheight is different from 'bitcoind getblockchaininfo' - wait until chain is sync " elif [ $LNTYPE = lnd ];then - echo "# FAIL PRECHECK - lncli getinfo shows 'synced_to_chain': false - wait until chain is sync " + echo "# FAIL PRECHECK - lncli getinfo shows 'synced_to_chain': false - wait until chain is sync " fi - echo + echo echo "# PRESS ENTER to return to menu" read key exit 0 @@ -50,7 +50,7 @@ if [ $LNTYPE = cl ];then confirmedBalance=$((confirmedBalance+i)) done elif [ $LNTYPE = lnd ];then - confirmedBalance=$($lncli_alias walletbalance | grep '"confirmed_balance"' | cut -d '"' -f4) + confirmedBalance=$($lncli_alias walletbalance | jq -r .confirmed_balance) fi if [ ${confirmedBalance} -eq 0 ]; then @@ -113,13 +113,13 @@ pubKey=$(dialog --clear \ clear if [ ${#pubKey} -eq 0 ]; then clear - echo + echo echo "no channel selected - returning to menu ..." sleep 4 exit 0 fi -# find out what is the minimum amount +# find out what is the minimum amount # TODO find a better way - also consider dust and channel reserve # details see here: https://github.com/btcontract/lnwallet/issues/52 minSat=20000