multi: add DeleteChannelEdges to VersionedGraph

Add version-aware DeleteChannelEdges method to VersionedGraph and
update call sites in graph builder, rpcserver, and server to use
versioned graphs. This ensures channel deletion operations are
properly scoped to the correct gossip version.
This commit is contained in:
Elle Mouton committed 2026-02-13 07:21:23 +02:00
1 parent dcd0b9dac7
commit b3cf9a806f
5 files changed
+36 -4

No files matched your search

+1 -1
View File
@@ -1422,7 +1422,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
return nil, fmt.Errorf("we don't have an edge")
}
err = s.graphDB.DeleteChannelEdges(
err = s.v1Graph.DeleteChannelEdges(
false, false, scid.ToUint64(),
)
return ourPolicy, err