From 51f4ac860ee25044269fa5cd8761dc4cbc2cb31a Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 26 Jan 2020 21:30:51 +0100 Subject: [PATCH] #123 adding ElectRS zo main menu --- home.admin/00mainMenu.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/home.admin/00mainMenu.sh b/home.admin/00mainMenu.sh index 0eb40a2b6..a3adc08d1 100755 --- a/home.admin/00mainMenu.sh +++ b/home.admin/00mainMenu.sh @@ -50,10 +50,6 @@ OPTIONS+=(INFO "RaspiBlitz Status Screen" \ CASHOUT "Remove Funds from on-chain Wallet" ) -if [ "${runBehindTor}" == "on" ]; then - OPTIONS+=(TOR "Tor Service options") -fi - # dont offer lnbalance/lnchannels on testnet if [ "${chain}" = "main" ]; then OPTIONS+=(lnbalance "Detailed Wallet Balances" \ @@ -66,6 +62,14 @@ if [ ${#openChannels} -gt 0 ] && [ ${openChannels} -gt 0 ]; then OPTIONS+=(CLOSEALL "Close all open Channels") fi +if [ "${runBehindTor}" == "on" ]; then + OPTIONS+=(TOR "Tor Service options") +fi + +if [ "${ElectRS}" == "on" ]; then + OPTIONS+=(ELECTRS "Electrum Rust Server") +fi + if [ "${touchscreen}" == "1" ]; then OPTIONS+=(SCREEN "Touchscreen Calibration") fi @@ -122,6 +126,11 @@ case $CHOICE in SCREEN) dialog --title 'Touchscreen Calibration' --msgbox 'Choose OK and then follow the instructions on touchscreen for calibration.\n\nBest is to use a stylus for accurate touchscreen interaction.' 9 48 /home/admin/config.scripts/blitz.touchscreen.sh calibrate + ./00mainMenu.sh + ;; + ELECTRS) + /home/admin/config.scripts/bonus.electrs.sh menu + ./00mainMenu.sh ;; lnchannels) lnchannels ${network}