lncfg+sample-lnd.conf: deprecate routing.assumechanvalid

This commit is contained in:
Oliver Gugger 2021-03-30 15:18:51 +02:00
parent 368743c9cb
commit 6fe4114e96
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 4 additions and 8 deletions

@ -2,5 +2,5 @@ package lncfg
// Routing holds the configuration options for routing.
type Routing struct {
AssumeChannelValid bool `long:"assumechanvalid" description:"Skip checking channel spentness during graph validation. This speedup comes at the risk of using an unvalidated view of the network for routing. (default: false)"`
AssumeChannelValid bool `long:"assumechanvalid" description:"DEPRECATED: This is now turned on by default for Neutrino (use neutrino.validatechannels=true to turn off) and shouldn't be used for any other backend! (default: false)"`
}

@ -468,13 +468,9 @@ bitcoin.node=btcd
; 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
; the cost of not validating channels in your routing graph. Skipping this
; validation means that your node may have an incorrect view of the network
; if it receives updates for closed or non-existent channels. This could affect
; routing, but funds are safu.
; DEPRECATED: This is now turned on by default for Neutrino (use
; neutrino.validatechannels=true to turn off) and shouldn't be used for any
; other backend!
; --routing.assumechanvalid=true
[Btcd]