routing: add strict pruning as new flag, default for neutrino

In this commit we add a new flag that controls if lnd will do strict
zombie pruning or not. If true, then this will cause lnd to maintain a
tighter graph as it wants both edges to always be live. We enable this by
default for neutrino as without this, it's possible that a node never
sees both edges begin disabled, so those edges are never actually pruned
from the graph.
This commit is contained in:
Olaoluwa Osuntokun
2021-04-02 15:02:08 -07:00
parent 7b589e5811
commit 6c27de7d11
3 changed files with 12 additions and 1 deletions

View File

@@ -489,6 +489,12 @@ bitcoin.node=btcd
; other backend!
; --routing.assumechanvalid=true
; If set to true, then we'll prune a channel if only a single edge is seen as
; being stale. This results in a more compact channel graph, and also is helpful
; for neutrino nodes as it means they'll only maintain edges where both nodes are
; seen as being live from it's PoV.
; --routing.strictgraphpruning=true
[Btcd]
; The base directory that contains the node's data, logs, configuration file,