Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix(lnd): implementing neutrino.feeurl
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Jan 28, 2021
1 parent e46ef82 commit 8940f81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/neutrino/neutrino.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,12 @@ class Neutrino extends EventEmitter {
const { chain, network, whitelistPeers, neutrinoNodes } = this.lndConfig
const nodes = neutrinoNodes || config.lnd.neutrino[chain][network]
const connectFlag = whitelistPeers ? 'connect' : 'addpeer'
const feeUrl = 'https://nodes.lightning.computer/fees/v1/btc-fee-estimates.json'

neutrinoArgs.push('--bitcoin.node=neutrino')
neutrinoArgs.push('--neutrino.useragentname=zap-desktop')
neutrinoArgs.push(`--neutrino.useragentversion=${getPackageDetails().version}`)
neutrinoArgs.push(`--neutrino.feeurl=${feeUrl}`)
neutrinoArgs.push(`--${chain}.${network}`)
nodes.forEach(node => neutrinoArgs.push(`--neutrino.${connectFlag}=${node}`))

Expand Down

0 comments on commit 8940f81

Please sign in to comment.