From 59895c673d84b619dfd168290fefcdf49b84b334 Mon Sep 17 00:00:00 2001 From: openoms Date: Tue, 6 Jul 2021 00:48:01 +0100 Subject: [PATCH] use CHAIN in CLN and LND menu --- home.admin/99clnMenu.sh | 22 ++++++++-------------- home.admin/99lndMenu.sh | 14 +++++++------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/home.admin/99clnMenu.sh b/home.admin/99clnMenu.sh index 36e536f1..4d1003ee 100644 --- a/home.admin/99clnMenu.sh +++ b/home.admin/99clnMenu.sh @@ -5,12 +5,6 @@ echo "# get raspiblitz config" source /home/admin/raspiblitz.info source /mnt/hdd/raspiblitz.conf -if [ $# -gt 0 ];then - NETWORK=$1 -else - NETWORK=${chain}net -fi - source <(/home/admin/config.scripts/network.aliases.sh getvars cln $1) # get the local network IP to be displayed on the LCD @@ -63,25 +57,25 @@ CHOICE=$(dialog --clear \ case $CHOICE in SUMMARY) - /home/admin/config.scripts/cln-plugin.summary.sh $NETWORK + /home/admin/config.scripts/cln-plugin.summary.sh $CHAIN ;; PEERING) - /home/admin/BBconnectPeer.sh cln $NETWORK + /home/admin/BBconnectPeer.sh cln $CHAIN ;; FUNDING) - /home/admin/BBfundWallet.sh cln $NETWORK + /home/admin/BBfundWallet.sh cln $CHAIN ;; CASHOUT) - /home/admin/BBcashoutWallet.sh + /home/admin/BBcashoutWallet.sh cln $CHAIN ;; CHANNEL) - /home/admin/BBopenChannel.sh cln $NETWORK + /home/admin/BBopenChannel.sh cln $CHAIN ;; SEND) - /home/admin/BBpayInvoice.sh cln $NETWORK + /home/admin/BBpayInvoice.sh cln $CHAIN ;; RECEIVE) - /home/admin/BBcreateInvoice.sh cln $NETWORK + /home/admin/BBcreateInvoice.sh cln $CHAIN ;; NAME) sudo /home/admin/config.scripts/lnd.setname.sh @@ -95,7 +89,7 @@ case $CHOICE in fi ;; CLOSEALL) - /home/admin/BBcloseAllChannels.sh cln $NETWORK + /home/admin/BBcloseAllChannels.sh cln $CHAIN echo "Press ENTER to return to main menu." read key ;; diff --git a/home.admin/99lndMenu.sh b/home.admin/99lndMenu.sh index ba41e861..6a4b6fc4 100644 --- a/home.admin/99lndMenu.sh +++ b/home.admin/99lndMenu.sh @@ -87,22 +87,22 @@ case $CHOICE in read key ;; PEERING) - /home/admin/BBconnectPeer.sh + /home/admin/BBconnectPeer.sh lnd $CHAIN ;; FUNDING) - /home/admin/BBfundWallet.sh + /home/admin/BBfundWallet.sh lnd $CHAIN ;; CASHOUT) - /home/admin/BBcashoutWallet.sh + /home/admin/BBcashoutWallet.sh lnd $CHAIN ;; CHANNEL) - /home/admin/BBopenChannel.sh + /home/admin/BBopenChannel.sh lnd $CHAIN ;; SEND) - /home/admin/BBpayInvoice.sh + /home/admin/BBpayInvoice.sh lnd $CHAIN ;; RECEIVE) - /home/admin/BBcreateInvoice.sh + /home/admin/BBcreateInvoice.sh lnd $CHAIN ;; NAME) sudo /home/admin/config.scripts/lnd.setname.sh @@ -116,7 +116,7 @@ case $CHOICE in fi ;; CLOSEALL) - /home/admin/BBcloseAllChannels.sh + /home/admin/BBcloseAllChannels.sh lnd $CHAIN echo "Press ENTER to return to main menu." read key ;;