graph/db: version cacheable iteration methods

Add gossip version parameters to ForEachNodeCacheable and
ForEachChannelCacheable in the Store interface and both implementations.

Thread the version through SQL helpers and update call sites/tests
accordingly.
This commit is contained in:
Elle Mouton committed 2026-02-20 08:50:43 +02:00
1 parent d48a16036d
commit f5c91691bc
7 files changed
+83 -54

No files matched your search

+2 -1
View File
@@ -669,7 +669,8 @@ func BenchmarkGraphReadMethods(b *testing.B) {
name: "ForEachNodeCacheable",
fn: func(b testing.TB, store Store) {
err := store.ForEachNodeCacheable(
ctx, func(_ route.Vertex,
ctx, lnwire.GossipVersion1,
func(_ route.Vertex,
_ *lnwire.FeatureVector) error {
// Increment the counter to