lnd/graph
Elle Mouton ebb199d215
graph/db: fix FetchChannelEdgesByID zombie fallback versioning
The zombie fallback in SQLStore.FetchChannelEdgesByID unconditionally
constructed a models.NewV1Channel regardless of the requested gossip
version. Use the passed version to select the correct constructor so
that v2 zombie edges carry the right version.

A new testFetchZombieEdgeVersioning versioned test verifies that
zombie edges returned by FetchChannelEdgesByID have the correct
gossip version for both v1 and v2.
2026-04-09 10:45:49 +05:45
..
db graph/db: fix FetchChannelEdgesByID zombie fallback versioning 2026-04-09 10:45:49 +05:45
testdata refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
builder.go graph/db: version NodeUpdatesInHorizon and ChanUpdatesInHorizon 2026-03-31 09:14:49 +02:00
builder_test.go graph,discovery: version IsZombieChannel 2026-03-16 11:29:40 +02:00
errors.go multi: use the "errors" package everywhere 2025-06-30 09:46:55 +02:00
interfaces.go graph/db: version MarkEdgeLive 2026-03-16 11:25:31 +02:00
log.go multi: start updating various loggers to use the new v2 type 2024-10-22 17:03:55 +02:00
notifications_test.go graph/tests: make createChannelEdge assert internally 2026-02-25 11:34:05 +02:00
setup_test.go refactor: move various duties from ChannelRouter to graph.Builder 2024-07-15 15:56:33 +02:00
stats.go graph: rename routerStats to builderStats 2025-02-07 13:01:39 +02:00