graph/db: move gossip versions up one layer

Update some of the node related graph CRUD methods to take a version
rather than hardcoding them in the SQLStore layer. Move the version up
one layer instead. This will make it easier to make it configurable
later on.
This commit is contained in:
Elle Mouton committed 2026-02-13 07:21:20 +02:00
1 parent 97143a74ab
commit c281810ab9
5 files changed
+111 -53

No files matched your search

+3 -1
View File
@@ -153,7 +153,9 @@ func TestNodeInsertionAndDeletion(t *testing.T) {
// Check that the node's features are fetched correctly. This check
// will check the database directly.
features, err = graph.db.FetchNodeFeatures(node.PubKeyBytes)
features, err = graph.db.FetchNodeFeatures(
lnwire.GossipVersion1, node.PubKeyBytes,
)
require.NoError(t, err)
require.Equal(t, testFeatures, features)