12538ea922
This commit adds support for channel graph pruning, which is the method used to keep the channel graph in sync with the current UTXO state. As the channel graph is essentially simply a subset of the UTXO set, by evaluating the channel graph with the set of outfits spent within a block, then we’re able to prune channels that’ve been closed by spending their funding outpoint. A new method `PruneGraph` has been provided which implements the described functionality. Upon start up any upper routing layers should sync forward in the chain pruning the channel graph with each newly found block. In order to facilitate such channel graph reconciliation a new method `PruneTip` has been added which allows callers to query current pruning state of the channel graph. |
||
---|---|---|
.. | ||
channel_test.go | ||
channel.go | ||
db_test.go | ||
db.go | ||
doc.go | ||
error.go | ||
fees.go | ||
graph_test.go | ||
graph.go | ||
invoice_test.go | ||
invoices.go | ||
log.go | ||
meta_test.go | ||
meta.go | ||
nodes_test.go | ||
nodes.go | ||
payments_test.go | ||
payments.go |