mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-11 16:09:16 +00:00
Specify consistent localhost IP address for loop and pool (IPv4)
This commit is contained in:
parent
74749b283f
commit
af7f29af49
|
@ -11,7 +11,7 @@ ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|||
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
||||
ExecStartPre=+/usr/bin/mynode_gen_pool_config.sh
|
||||
EnvironmentFile=-/mnt/hdd/mynode/pool/env
|
||||
ExecStart=/usr/local/bin/poold --network=${NETWORK} --basedir=/mnt/hdd/mynode/pool
|
||||
ExecStart=/usr/local/bin/poold --network=${NETWORK} --basedir=/mnt/hdd/mynode/pool --rpclisten=127.0.0.1:12010 --restlisten=127.0.0.1:8281
|
||||
|
||||
User=bitcoin
|
||||
Group=bitcoin
|
||||
|
|
|
@ -9,4 +9,8 @@ else
|
|||
echo "NETWORK=mainnet" >> /mnt/hdd/mynode/loop/env
|
||||
echo "LND_ADMIN_MACAROON_PATH=/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon" >> /mnt/hdd/mynode/loop/env
|
||||
fi
|
||||
chown bitcoin:bitcoin /mnt/hdd/mynode/loop/env
|
||||
chown bitcoin:bitcoin /mnt/hdd/mynode/loop/env
|
||||
|
||||
# Copy config file
|
||||
cp -f /usr/share/mynode/loopd.conf /mnt/hdd/mynode/loop/loopd.conf
|
||||
chown bitcoin:bitcoin /mnt/hdd/mynode/loop/loopd.conf
|
||||
|
|
|
@ -42,5 +42,8 @@ else
|
|||
sed -i "s/testnet/mainnet/g" /mnt/hdd/mynode/rtl/RTL-Config.json || true
|
||||
fi
|
||||
|
||||
# Update for loop connection
|
||||
sed -i "s/localhost:8081/127.0.0.1:8081/g" /mnt/hdd/mynode/rtl/RTL-Config.json || true
|
||||
|
||||
sync
|
||||
sleep 3s
|
|
@ -15,17 +15,17 @@ pool-mode=remote
|
|||
remote.lit-debuglevel=debug
|
||||
|
||||
# Remote lnd options
|
||||
remote.lnd.rpcserver=localhost:10009
|
||||
remote.lnd.rpcserver=127.0.0.1:10009
|
||||
remote.lnd.macaroonpath=/mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon
|
||||
remote.lnd.tlscertpath=/mnt/hdd/mynode/lnd/tls.cert
|
||||
|
||||
# Remote loop options
|
||||
remote.loop.rpcserver=localhost:11010
|
||||
remote.loop.rpcserver=127.0.0.1:11010
|
||||
remote.loop.macaroonpath=/mnt/hdd/mynode/loop/mainnet/loop.macaroon
|
||||
remote.loop.tlscertpath=/mnt/hdd/mynode/loop/mainnet/tls.cert
|
||||
|
||||
# Remote pool options
|
||||
remote.pool.rpcserver=localhost:12010
|
||||
remote.pool.rpcserver=127.0.0.1:12010
|
||||
remote.pool.macaroonpath=/mnt/hdd/mynode/pool/mainnet/pool.macaroon
|
||||
remote.pool.tlscertpath=/mnt/hdd/mynode/pool/mainnet/tls.cert
|
||||
|
||||
|
|
12
rootfs/standard/usr/share/mynode/loopd.conf
Normal file
12
rootfs/standard/usr/share/mynode/loopd.conf
Normal file
|
@ -0,0 +1,12 @@
|
|||
# CAN'T LISTEN ON TWO ADDR TYPES
|
||||
# Some OSes prefer IPv6 for "localhost" which is the default. This can cause
|
||||
# problems if some things use localhost vs 127.0.0.1 or if some apps prefer IPv4
|
||||
# For now, try to patch config files to point to 127.0.0.1 for loop and pool
|
||||
# since they can't bind to two addresses.
|
||||
|
||||
rpclisten=127.0.0.1:11010
|
||||
#rpclisten=[::1]:11010
|
||||
|
||||
restlisten=127.0.0.1:8081
|
||||
#restlisten=[::1]:8081
|
||||
|
Loading…
Reference in New Issue
Block a user