mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-19 13:17:32 +02:00
Add version-free shadow methods to VersionedGraph so it satisfies the routing.Graph, graphdb.NodeTraverser, and related interfaces used by the channel router and RPC layer. FetchNodeFeatures and ForEachNodeDirectedChannel delegate to the graph cache when available, falling back to the store with the baked-in version. ForEachNode, ForEachNodeCached, ChannelView, and NodeUpdatesInHorizon all forward to the embedded ChannelGraph with the version pre-applied. Update server.go and rpcserver.go to pass s.v1Graph (a *VersionedGraph wrapping the main graphDB with GossipVersion1) wherever the routing and session interfaces are needed, replacing direct *ChannelGraph references that no longer satisfy those interfaces after the version parameters were added. |
||
|---|---|---|
| .. | ||
| db | ||
| testdata | ||
| builder.go | ||
| builder_test.go | ||
| errors.go | ||
| interfaces.go | ||
| log.go | ||
| notifications_test.go | ||
| setup_test.go | ||
| stats.go | ||