Browse Source
feat(lnd): update to new btcd backend
renovate/lint-staged-8.x
Tom Kirkpatrick
6 years ago
No known key found for this signature in database
GPG Key ID: 72203A8EC5967EA8
2 changed files with
8 additions and
2 deletions
-
app/lib/lnd/neutrino.js
-
resources/lnd.conf
|
|
@ -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 => { |
|
|
|
|
|
@ -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] |
|
|
|
|
|
|
|