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

Commit

Permalink
Merge f71d45a into 6b7c04a
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMow committed Aug 21, 2018
2 parents 6b7c04a + f71d45a commit 8672ad5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/lib/lnd/neutrino.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,20 @@ class Neutrino extends EventEmitter {
const neutrinoArgs = [
`--configfile=${this.lndConfig.configPath}`,
`--lnddir=${this.lndConfig.dataDir}`,
`${this.lndConfig.autopilot ? '--autopilot.active' : ''}`,
`${this.lndConfig.alias ? `--alias=${this.lndConfig.alias}` : ''}`
]

// If the user toggled autopilot on let's enable it,
// make sure channels are private and allow it to use 0 conf txs
if (this.lndConfig.autopilot) {
// Turn autopilot on
neutrinoArgs.push('--autopilot.active')
// Ensure all channels opened by autopilot will be flagged private
neutrinoArgs.push('--autopilot.private')
// Allow autopilot to use 0 conf txs
neutrinoArgs.push('--autopilot.minconfs=0')
}

if (this.lndConfig.network === 'mainnet') {
neutrinoArgs.push('--neutrino.connect=mainnet1-btcd.zaphq.io')
// neutrinoArgs.push('--neutrino.connect=mainnet2-btcd.zaphq.io')
Expand Down

0 comments on commit 8672ad5

Please sign in to comment.