Browse Source

update to new config

#146
rootzoll 6 years ago
parent
commit
b715db5f36
  1. 10
      home.admin/BBconnectPeer.sh

10
home.admin/BBconnectPeer.sh

@ -2,9 +2,13 @@
_temp="./download/dialog.$$"
_error="./.error.out"
# load network and chain info
network=`cat .network`
chain=$(sudo -bitcoin ${network}-cli -datadir=/home/bitcoin/.${network} getblockchaininfo | jq -r '.chain')
# load raspiblitz config data (with backup from old config)
source /mnt/hdd/raspiblitz.conf 2>/dev/null
if [ ${#network} -eq 0 ]; then network=`cat .network`; fi
if [ ${#chain} -eq 0 ]; then
echo "gathering chain info ... please wait"
chain=$(${network}-cli getblockchaininfo | jq -r '.chain')
fi
# set ntwork map info
networkMap="https://lnmainnet.gaben.win"

Loading…
Cancel
Save