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