diff --git a/lncfg/neutrino.go b/lncfg/neutrino.go index c00f3a70..f8a84a44 100644 --- a/lncfg/neutrino.go +++ b/lncfg/neutrino.go @@ -14,4 +14,5 @@ type Neutrino struct { AssertFilterHeader string `long:"assertfilterheader" description:"Optional filter header in height:hash format to assert the state of neutrino's filter header chain on startup. If the assertion does not hold, then the filter header chain will be re-synced from the genesis block."` UserAgentName string `long:"useragentname" description:"Used to help identify ourselves to other bitcoin peers"` UserAgentVersion string `long:"useragentversion" description:"Used to help identify ourselves to other bitcoin peers"` + ValidateChannels bool `long:"validatechannels" description:"Validate every channel in the graph during sync by downloading the containing block. This is the inverse of routing.assumechanvalid, meaning that for Neutrino the validation is turned off by default for massively increased graph sync performance. This speedup comes at the risk of using an unvalidated view of the network for routing. Overwrites the value of routing.assumechanvalid if Neutrino is used. (default: false)"` } diff --git a/sample-lnd.conf b/sample-lnd.conf index baa7f778..e7be8971 100644 --- a/sample-lnd.conf +++ b/sample-lnd.conf @@ -460,6 +460,14 @@ bitcoin.node=btcd ; Used to help identify ourselves to other bitcoin peers (default: 0.11.0-beta). ; neutrino.useragentversion=0.11.0-beta +; Validate every channel in the graph during sync by downloading the containing +; block. This is the inverse of routing.assumechanvalid, meaning that for +; Neutrino the validation is turned off by default for massively increased graph +; sync performance. This speedup comes at the risk of using an unvalidated view +; of the network for routing. Overwrites the value of routing.assumechanvalid if +; Neutrino is used. (default: false) +; neutrino.validatechannels=false + ; Skip checking channel spentness and existence during graph validation for ; neutrino. Enabling this option means that neutrino nodes will not need to ; perform long rescans which block initial usage of the daemon, but comes at