Browse Source

dont offer lnbalance/lnchannels on testnet

#146
rootzoll 6 years ago
parent
commit
1364c44cfc
  1. 8
      home.admin/00mainMenu.sh

8
home.admin/00mainMenu.sh

@ -204,11 +204,15 @@ else
SEND "Pay an Invoice/PaymentRequest" \
RECEIVE "Create Invoice/PaymentRequest" \
SERVICES "Activate/Deactivate Services" \
lnbalance "Detailed Wallet Balances" \
lnchannels "Lightning Channel List" \
MOBILE "Connect Mobile Wallet" \
CASHOUT "Remove Funds from on-chain Wallet")
# dont offer lnbalance/lnchannels on testnet
if [ "${chain}" = "main" ]; then
OPTIONS+=(lnbalance "Detailed Wallet Balances" \
lnchannels "Lightning Channel List")
fi
# Depending Options
openChannels=$(sudo -u bitcoin /usr/local/bin/lncli listchannels 2>/dev/null | jq '.[] | length')
if [ ${openChannels} -gt 0 ]; then

Loading…
Cancel
Save