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:
7 files changed
+83
-54
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user