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

Commit

Permalink
fix(lnd): enable assumechanvalid on mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyMow committed Mar 15, 2019
1 parent e993a17 commit 82c60b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/lib/lnd/neutrino.js
Expand Up @@ -134,6 +134,7 @@ class Neutrino extends EventEmitter {

// Configure lnd.
const neutrinoArgs = [
`--routing.assumechanvalid`,
`--configfile=${this.lndConfig.configPath}`,
`--lnddir=${this.lndConfig.lndDir}`,
`--listen=0.0.0.0:${p2pListen}`,
Expand All @@ -151,11 +152,6 @@ class Neutrino extends EventEmitter {
neutrinoArgs.push(`--neutrino.connect=${node}`)
)

// When not on mainnet, enable the experimental assumechanvalid flag.
if (this.lndConfig.network !== 'mainnet') {
neutrinoArgs.push(`--routing.assumechanvalid`)
}

// Log the final config.
mainLog.info(
'Spawning Neutrino process: %s %s',
Expand Down

0 comments on commit 82c60b5

Please sign in to comment.