|
|
@ -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" |
|
|
|