Lnd updates (#3095)

* lnd update to v0.14.3

* chantools udpate to v.0.10.4, change to /usr/local/bin

* do not set "tor.streamisolation" "true" again
fix #3094

* add to CHANGES.md
This commit is contained in:
openoms 2022-05-10 08:34:30 +01:00 committed by GitHub
parent fbf97b749f
commit 91fbe7b61d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 15 deletions

View file

@ -5,7 +5,11 @@
- New: WebUI
- New: BackendAPI
- Update: Bitcoin Core v23.0 [details](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-23.0.md)
- Update: C-lightning v0.11.0.1 [details](https://github.com/ElementsProject/lightning/releases/tag/v0.11.0.1)
- Update: Core Lightning (CLN - formerly C-lightning) v0.11.0.1 [details](https://github.com/ElementsProject/lightning/releases/tag/v0.11.0.1)
- Update: LND v0.14.3 [details](https://github.com/lightningnetwork/lnd/releases/tag/v0.14.3-beta)
- Update: RTL v0.12.3 [details](https://github.com/Ride-The-Lightning/RTL/releases/tag/v0.12.3)
- Update: C-lightningREST v0.7.0 [details](https://github.com/Ride-The-Lightning/c-lightning-REST/releases/tag/v0.7.0)
- Update: Channel Tools (chantools) v0.10.4 [details](https://github.com/guggero/chantools/blob/master/README.md)
- Update: BTCPayServer v1.5.1 [details](https://github.com/btcpayserver/btcpayserver/releases/tag/v1.5.1)
- Info: Run RaspiBlitz on VirtualBox & TrueNAS [details](https://github.com/rootzoll/raspiblitz/tree/dev/alternative.platforms)

View file

@ -6,7 +6,7 @@
lndVersion=$(lncli -v | cut -d " " -f 3 | cut -d"." -f2)
if [ $lndVersion -eq 14 ]; then
pinnedVersion="0.10.1"
pinnedVersion="0.10.4"
else
echo "# LND not installed or a version not tested with chantools"
lncli -v
@ -37,7 +37,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
downloadDir="/home/admin/download" # edit your download directory
PGPpkeys="https://keybase.io/guggero/pgp_keys.asc"
PGPcheck="4FC70F07310028424EFC20A8E4256593F177720"
PGPcheck="F4FC70F07310028424EFC20A8E4256593F177720"
echo "Detect CPU architecture ..."
isARM=$(uname -m | grep -c 'arm')
@ -113,10 +113,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
# install
sudo -u admin tar -xzf ${binaryName}
sudo -u bitcoin mkdir -p /home/bitcoin/bin 2>/dev/null
sudo install -m 0755 -o bitcoin -g bitcoin -t /home/bitcoin/bin chantools-linux-${OSversion}-v${pinnedVersion}/*
sudo install -m 0755 -o root -g root -t /usr/local/bin/ chantools-linux-${OSversion}-v${pinnedVersion}/*
sleep 3
installed=$(sudo -u bitcoin /home/bitcoin/bin/chantools --version)
installed=$(sudo -u bitcoin chantools --version)
if [ ${#installed} -eq 0 ]; then
echo
echo "# !!! BUILD FAILED --> Was not able to install Channel Tools"
@ -138,16 +137,14 @@ fi
# switch off
if [ "$1" = "0" ] || [ "$1" = "off" ]; then
# setting value in raspi blitz config
/home/admin/config.scripts/blitz.conf.sh set chantools "off"
echo "# REMOVING Channel Tools"
sudo rm -rf /home/admin/download/chantools*
sudo rm -rf /home/bitcoin/bin/chantools*
sudo rm -rf /usr/local/bin/chantools*
echo "# OK, chantools is removed."
exit 0
fi
echo "# FAIL - Unknown Parameter $1"

View file

@ -157,7 +157,7 @@ if [ "$1" == "prestart" ]; then
setting ${lndConfFile} ${insertLine} "${network}d\.rpchost" "127\.0\.0\.1\:${portprefix}8332"
##### APPLICATION OPTIONS SECTION #####
sectionLine=$(cat ${lndConfFile} | grep -n "^\[Application Options\]" | cut -d ":" -f1)
echo "# sectionLine(${sectionLine})"
insertLine=$(expr $sectionLine + 1)
@ -243,11 +243,9 @@ if [ "$1" == "prestart" ]; then
setting ${lndConfFile} ${insertLine} "tor.active" "true"
# take care of incompatible settings https://github.com/rootzoll/raspiblitz/issues/2787#issuecomment-991245694
if [ $(cat ${lndConfFile} | grep -c "tor.skip-proxy-for-clearnet-targets=true") -gt 0 ] ||
[ $(cat ${lndConfFile} | grep -c "tor.skip-proxy-for-clearnet-targets=1") -gt 0 ]; then
if [ $(cat ${lndConfFile} | grep -c "^tor.skip-proxy-for-clearnet-targets=true") -gt 0 ] ||
[ $(cat ${lndConfFile} | grep -c "^tor.skip-proxy-for-clearnet-targets=1") -gt 0 ]; then
setting ${lndConfFile} ${insertLine} "tor.streamisolation" "false"
else
setting ${lndConfFile} ${insertLine} "tor.streamisolation" "true"
fi
# deprecate Tor password (remove if in lnd.conf)

View file

@ -4,7 +4,7 @@
## based on https://raspibolt.github.io/raspibolt/raspibolt_40_lnd.html#lightning-lnd
## see LND releases: https://github.com/lightningnetwork/lnd/releases
## !!!! If you change here - make sure to also change interims version in lnd.update.sh !!!
lndVersion="0.14.2-beta"
lndVersion="0.14.3-beta"
# olaoluwa
# PGPauthor="roasbeef"