mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
lnd: fix lnd.conf for parallel networks
discussed in: https://github.com/rootzoll/raspiblitz/issues/2290
This commit is contained in:
parent
1e8b5ad927
commit
94aa473a91
1 changed files with 16 additions and 0 deletions
|
@ -106,6 +106,22 @@ ${bitcoinprefix}.zmqpubrawtx=tcp://127.0.0.1:${zmqprefix}333"|\
|
|||
sudo tee -a /mnt/hdd/${network}/${network}.conf
|
||||
fi
|
||||
|
||||
if [ -f /mnt/hdd/lnd/lnd.conf ];then
|
||||
echo "# Check mainnet lnd.conf"
|
||||
RPCUSER=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcuser | cut -c 9-)
|
||||
RPCPSW=$(sudo cat /mnt/hdd/${network}/${network}.conf | grep rpcpassword | cut -c 13-)
|
||||
# it does not pick up main.zmqpubraw entries from bitcoin.conf, need to set manually
|
||||
if [ $(grep -c zmqpubrawblock /mnt/hdd/lnd/lnd.conf) -eq 0 ];then
|
||||
echo "
|
||||
[bitcoind]
|
||||
bitcoind.rpcuser=$RPCUSER
|
||||
bitcoind.rpcpass=$RPCPSW
|
||||
bitcoind.zmqpubrawblock=tcp://127.0.0.1:28332
|
||||
bitcoind.zmqpubrawtx=tcp://127.0.0.1:28333
|
||||
" | sudo tee -a /mnt/hdd/lnd/lnd.conf
|
||||
fi
|
||||
fi
|
||||
|
||||
# addnode
|
||||
if [ ${bitcoinprefix} = signet ];then
|
||||
if [ $(grep -c "${bitcoinprefix}.addnode" < /mnt/hdd/${network}/${network}.conf) -eq 0 ];then
|
||||
|
|
Loading…
Add table
Reference in a new issue