Browse Source

feat(lnd): update to new btcd backend

renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
2870555ab8
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 8
      app/lib/lnd/neutrino.js
  2. 2
      resources/lnd.conf

8
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 => {

2
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]

Loading…
Cancel
Save