Update Loop to v0.11.2; Integrate with RTL

This commit is contained in:
Taylor Helsper 2021-01-02 16:05:13 -06:00
parent 3445572de6
commit 4d46661c91
3 changed files with 11 additions and 8 deletions

View File

@ -263,13 +263,17 @@ fi
if [ ! -f /mnt/hdd/mynode/rtl/RTL-Config.json ]; then
cp -f /usr/share/mynode/RTL-Config.json /mnt/hdd/mynode/rtl/RTL-Config.json
fi
# Force update of RTL config file (increment to force new update)
RTL_CONFIG_UPDATE_NUM=1
if [ ! -f /mnt/hdd/mynode/rtl/update_settings_$RTL_CONFIG_UPDATE_NUM ]; then
cp -f /usr/share/mynode/RTL-Config.json /mnt/hdd/mynode/rtl/RTL-Config.json
touch /mnt/hdd/mynode/rtl/update_settings_$RTL_CONFIG_UPDATE_NUM
fi
# Update RTL config file to use mynode pw
if [ -f /home/bitcoin/.mynode/.hashedpw ]; then
HASH=$(cat /home/bitcoin/.mynode/.hashedpw)
sed -i "s/\"multiPassHashed\":.*/\"multiPassHashed\": \"$HASH\",/g" /mnt/hdd/mynode/rtl/RTL-Config.json
fi
# Update API URLs to HTTPS
sed -i "s/http:/https:/g" /mnt/hdd/mynode/rtl/RTL-Config.json
# BTC RPC Explorer Config
cp /usr/share/mynode/btc_rpc_explorer_env /opt/mynode/btc-rpc-explorer/.env

View File

@ -14,7 +14,8 @@
"lnImplementation": "LND",
"Authentication": {
"macaroonPath": "/home/bitcoin/.lnd/data/chain/bitcoin/mainnet",
"configPath": "/home/bitcoin/.lnd/lnd.conf"
"configPath": "/home/bitcoin/.lnd/lnd.conf",
"swapMacaroonPath": "/mnt/hdd/mynode/loop/mainnet"
},
"Settings": {
"userPersona": "MERCHANT",
@ -22,8 +23,8 @@
"themeColor": "PURPLE",
"channelBackupPath": "/mnt/hdd/mynode/rtl_backup/",
"enableLogging": true,
"lnServerUrl": "https://localhost:10080/v1",
"swapServerUrl": "https://localhost:8081/v1",
"lnServerUrl": "https://localhost:10080",
"swapServerUrl": "https://localhost:8081",
"fiatConversion": false
}
}

View File

@ -8,9 +8,7 @@ LND_VERSION="v0.11.1-beta"
LND_VERSION_FILE=/home/bitcoin/.mynode/lnd_version
LND_LATEST_VERSION_FILE=/home/bitcoin/.mynode/lnd_version_latest
# DELAY UPGRADING TO v0.10.0+ UNTIL RTL SUPPORTS MACAROON AUTH
# https://github.com/Ride-The-Lightning/RTL/issues/515
LOOP_VERSION="v0.9.0-beta"
LOOP_VERSION="v0.11.2-beta"
LOOP_VERSION_FILE=/home/bitcoin/.mynode/loop_version
LOOP_LATEST_VERSION_FILE=/home/bitcoin/.mynode/loop_version_latest