From 5b3ed817b2d6698b73cd275f0fe4a0c85c92f738 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Sat, 24 Jul 2021 22:57:11 -0500 Subject: [PATCH] Upgrade LND to v0.13.1; Upgrade wallet unlock logic --- rootfs/standard/usr/bin/mynode_gen_lnd_config.sh | 11 ----------- rootfs/standard/usr/share/mynode/lnd.conf | 3 ++- .../standard/usr/share/mynode/mynode_app_versions.sh | 2 +- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh index dc50ba72..800b0c9d 100755 --- a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh @@ -31,17 +31,6 @@ else sed -i "s/bitcoin.testnet=.*/bitcoin.testnet=1/g" /mnt/hdd/mynode/lnd/lnd.conf cat /usr/share/mynode/lnd_testnet.conf >> /mnt/hdd/mynode/lnd/lnd.conf fi - - # Only add wallet-unlock-file line if wallet has been made - if [ -f /mnt/hdd/mynode/settings/.testnet_enabled ]; then - if [ -f /mnt/hdd/mynode/lnd/data/chain/bitcoin/testnet/wallet.db ]; then - sed -i "s/#wallet-unlock-password-file/wallet-unlock-password-file/g" /mnt/hdd/mynode/lnd/lnd.conf - fi - else - if [ -f /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/wallet.db ]; then - sed -i "s/#wallet-unlock-password-file/wallet-unlock-password-file/g" /mnt/hdd/mynode/lnd/lnd.conf - fi - fi fi # Append tor domain diff --git a/rootfs/standard/usr/share/mynode/lnd.conf b/rootfs/standard/usr/share/mynode/lnd.conf index cfad9bf2..70afb873 100644 --- a/rootfs/standard/usr/share/mynode/lnd.conf +++ b/rootfs/standard/usr/share/mynode/lnd.conf @@ -21,7 +21,8 @@ debuglevel=info #debuglevel=debug # This line needs to be uncommented if you have a lnd wallet and commented if you do not -#wallet-unlock-password-file=/mnt/hdd/mynode/settings/.lndpw +wallet-unlock-password-file=/mnt/hdd/mynode/settings/.lndpw +wallet-unlock-allow-create=true ignore-historical-gossip-filters=true accept-keysend=true diff --git a/rootfs/standard/usr/share/mynode/mynode_app_versions.sh b/rootfs/standard/usr/share/mynode/mynode_app_versions.sh index 0a44e5b7..c23016ed 100644 --- a/rootfs/standard/usr/share/mynode/mynode_app_versions.sh +++ b/rootfs/standard/usr/share/mynode/mynode_app_versions.sh @@ -4,7 +4,7 @@ BTC_VERSION="0.21.1" BTC_VERSION_FILE=/home/bitcoin/.mynode/bitcoin_version BTC_LATEST_VERSION_FILE=/home/bitcoin/.mynode/bitcoin_version_latest -LND_VERSION="v0.13.0-beta" +LND_VERSION="v0.13.1-beta" LND_VERSION_FILE=/home/bitcoin/.mynode/lnd_version LND_LATEST_VERSION_FILE=/home/bitcoin/.mynode/lnd_version_latest LND_UPGRADE_MANIFEST_URL=https://github.com/lightningnetwork/lnd/releases/download/$LND_VERSION/manifest-$LND_VERSION.txt