From 2870555ab81b71d47ed3314bf26682c8fbf8b5b2 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Fri, 10 Aug 2018 15:06:43 +0200 Subject: [PATCH] feat(lnd): update to new btcd backend --- app/lib/lnd/neutrino.js | 8 ++++++++ resources/lnd.conf | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/lib/lnd/neutrino.js b/app/lib/lnd/neutrino.js index 423eda4b..c8f14c7b 100644 --- a/app/lib/lnd/neutrino.js +++ b/app/lib/lnd/neutrino.js @@ -55,6 +55,14 @@ class Neutrino extends EventEmitter { `${this.lndConfig.alias ? `--alias=${this.lndConfig.alias}` : ''}` ] + if (this.lndConfig.network === 'mainnet') { + neutrinoArgs.push('--neutrino.connect=mainnet1-btcd.zaphq.io') + neutrinoArgs.push('--neutrino.connect=mainnet2-btcd.zaphq.io') + } else { + neutrinoArgs.push('--neutrino.connect=testnet1-btcd.zaphq.io') + neutrinoArgs.push('--neutrino.connect=testnet2-btcd.zaphq.io') + } + this.process = spawn(this.lndConfig.binaryPath, neutrinoArgs) .on('error', error => this.emit(ERROR, error)) .on('close', code => { diff --git a/resources/lnd.conf b/resources/lnd.conf index 3cd6aa5b..a6cdc72b 100644 --- a/resources/lnd.conf +++ b/resources/lnd.conf @@ -212,8 +212,6 @@ bitcoin.node=neutrino ; Add a peer to connect with at startup. ; neutrino.addpeer= -neutrino.connect=206.189.72.180 -neutrino.connect=127.0.0.1:18333 [Litecoin]