graph/db: add version parameter to DeleteChannelEdges
Thread the gossip version through DeleteChannelEdges to enable version-aware channel deletion. The KVStore rejects non-v1 versions while SQLStore properly passes the version to the underlying queries. This prepares for v2 channel zombie handling (strict zombie pruning for v2 is marked as TODO).
This commit is contained in:
5 files changed
+43
-18
No files matched your search
@@ -215,8 +215,9 @@ type Store interface { //nolint:interfacebloat
|
||||
// failed to send the fresh update to be the one that resurrects the
|
||||
// channel from its zombie state. The markZombie bool denotes whether
|
||||
// to mark the channel as a zombie.
|
||||
DeleteChannelEdges(strictZombiePruning, markZombie bool,
|
||||
chanIDs ...uint64) ([]*models.ChannelEdgeInfo, error)
|
||||
DeleteChannelEdges(v lnwire.GossipVersion, strictZombiePruning,
|
||||
markZombie bool, chanIDs ...uint64) (
|
||||
[]*models.ChannelEdgeInfo, error)
|
||||
|
||||
// AddEdgeProof sets the proof of an existing edge in the graph
|
||||
// database.
|
||||
|
||||
Reference in new issue
Block a user