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

Commit

Permalink
fix(autopilot): move private/minconf to proto
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMow committed Aug 21, 2018
1 parent f71d45a commit 0e741d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 1 addition & 11 deletions app/lib/lnd/neutrino.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,10 @@ 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
5 changes: 5 additions & 0 deletions resources/lnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ litecoin.node=ltcd
; amount of attempted channels will still respect the maxchannels param.
; autopilot.allocation=0.6

; If the user toggled autopilot on let's make sure channels are private and allow
; it to use 0 conf txs
autopilot.private=1
autopilot.minconfs=0

[tor]
; The port that Tor's exposed SOCKS5 proxy is listening on. Using Tor allows
; outbound-only connections (listening will be disabled) -- NOTE port must be
Expand Down

0 comments on commit 0e741d8

Please sign in to comment.