Resolve issue creating or restoring wallets

This commit is contained in:
Taylor Helsper 2021-06-26 23:05:30 -05:00
parent 4968a312d3
commit 7278e58dc8
2 changed files with 12 additions and 1 deletions

View File

@ -31,6 +31,17 @@ 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

View File

@ -20,7 +20,7 @@ tlsextradomain=mynode.local
debuglevel=info
#debuglevel=debug
wallet-unlock-password-file=/mnt/hdd/mynode/settings/.lndpw
#wallet-unlock-password-file=/mnt/hdd/mynode/settings/.lndpw
ignore-historical-gossip-filters=true
accept-keysend=true