Browse Source

better switch

#146
rootzoll 6 years ago
parent
commit
ae5fcd2879
  1. 5
      home.admin/70initLND.sh
  2. 1
      home.admin/BBopenChannel.sh

5
home.admin/70initLND.sh

@ -94,6 +94,11 @@ echo ""
###### Instructions on Creating LND Wallet ###### Instructions on Creating LND Wallet
walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${chain}net/wallet.db 2>/dev/null | grep wallet.db -c) walletExists=$(sudo ls /mnt/hdd/lnd/data/chain/${network}/${chain}net/wallet.db 2>/dev/null | grep wallet.db -c)
if [ ${walletExists} -eq 0 ]; then if [ ${walletExists} -eq 0 ]; then
# delete old macaroons if exist
sudo rm /mnt/hdd/lnd/*.macaroon 2>/dev/null
sudo rm /home/admin/.lnd/*.macaroon 2>/dev/null
# setup state signals, that no wallet has been created yet # setup state signals, that no wallet has been created yet
dialog --backtitle "RaspiBlitz - LND Lightning Wallet" --msgbox " dialog --backtitle "RaspiBlitz - LND Lightning Wallet" --msgbox "
${network} and Lighthing Services are installed. ${network} and Lighthing Services are installed.

1
home.admin/BBopenChannel.sh

@ -63,6 +63,7 @@ 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 # TODO find a better way - also consider dust and channel reserve
# details see here: https://github.com/btcontract/lnwallet/issues/52
minSat=20000 minSat=20000
_error="./.error.out" _error="./.error.out"
lncli openchannel ${CHOICE} 1 0 2>$_error lncli openchannel ${CHOICE} 1 0 2>$_error

Loading…
Cancel
Save