Browse Source

Remove hardcoded mainnet neutrino peers (#117)

mount-script-check
Mayank Chhabra 4 years ago
committed by GitHub
parent
commit
bc66ee29b1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      scripts/configure
  2. 12
      templates/lnd-sample.conf

11
scripts/configure

@ -113,13 +113,10 @@ if [ "$BITCOIN_NETWORK" == "testnet" ]; then
sed -i "s/\#testnet=1/testnet=1/g" "$BITCOIN_CONF_FILE" sed -i "s/\#testnet=1/testnet=1/g" "$BITCOIN_CONF_FILE"
# Switch LND to testnet # Switch LND to testnet
sed -i "s/bitcoin.mainnet=1/bitcoin.testnet=1/g;" "$LND_CONF_FILE" sed -i "s/bitcoin.mainnet=1/bitcoin.testnet=1/g;" "$LND_CONF_FILE"
# Comment mainnet neutrino peers # Uncomment testnet neutrino block and peers
sed -i "s/neutrino.addpeer=bb2.breez.technology/\;neutrino.addpeer=bb2.breez.technology/g;" "$LND_CONF_FILE" sed -i "s/\# \[neutrino\]/\[neutrino\]/g;" "$LND_CONF_FILE"
sed -i "s/neutrino.addpeer=mainnet1-btcd.zaphq.io/\;neutrino.addpeer=mainnet1-btcd.zaphq.io/g;" "$LND_CONF_FILE" sed -i "s/\# neutrino.addpeer=testnet1-btcd.zaphq.io/neutrino.addpeer=testnet1-btcd.zaphq.io/g;" "$LND_CONF_FILE"
sed -i "s/neutrino.addpeer=mainnet2-btcd.zaphq.io/\;neutrino.addpeer=mainnet2-btcd.zaphq.io/g;" "$LND_CONF_FILE" sed -i "s/\# neutrino.addpeer=testnet2-btcd.zaphq.io/neutrino.addpeer=testnet2-btcd.zaphq.io/g;" "$LND_CONF_FILE"
# Uncomment testnet neutrino peers
sed -i "s/\;neutrino.addpeer=testnet1-btcd.zaphq.io/neutrino.addpeer=testnet1-btcd.zaphq.io/g;" "$LND_CONF_FILE"
sed -i "s/\;neutrino.addpeer=testnet2-btcd.zaphq.io/neutrino.addpeer=testnet2-btcd.zaphq.io/g;" "$LND_CONF_FILE"
fi fi

12
templates/lnd-sample.conf

@ -24,17 +24,11 @@ bitcoin.mainnet=1
bitcoin.node=neutrino bitcoin.node=neutrino
bitcoin.defaultchanconfs=2 bitcoin.defaultchanconfs=2
[neutrino] # [neutrino]
# Mainnet neutrino peers that are automatically
# commented if Umbrel is not configured for mainnet
neutrino.addpeer=bb2.breez.technology
neutrino.addpeer=mainnet1-btcd.zaphq.io
neutrino.addpeer=mainnet2-btcd.zaphq.io
# Testnet neutrino peers that are automatically # Testnet neutrino peers that are automatically
# uncommented if Umbrel is configured for testnet # uncommented if Umbrel is configured for testnet
;neutrino.addpeer=testnet1-btcd.zaphq.io # neutrino.addpeer=testnet1-btcd.zaphq.io
;neutrino.addpeer=testnet2-btcd.zaphq.io # neutrino.addpeer=testnet2-btcd.zaphq.io
[tor] [tor]
tor.active=1 tor.active=1

Loading…
Cancel
Save