multi: rename AddLightningNode methods

to AddNode
This commit is contained in:
Elle Mouton committed 2025-09-03 10:14:35 +02:00
1 parent c663a557c4
commit 060219780b
14 files changed
+75 -75

No files matched your search

+3 -3
View File
@@ -293,14 +293,14 @@ func parseTestGraph(t *testing.T, useCache bool, path string) (
source = dbNode
// If this is the source node, we don't have to call
// AddLightningNode below since we will call
// AddNode below since we will call
// SetSourceNode later.
continue
}
// With the node fully parsed, add it as a vertex within the
// graph.
if err := graph.AddLightningNode(ctx, dbNode); err != nil {
if err := graph.AddNode(ctx, dbNode); err != nil {
return nil, err
}
}
@@ -584,7 +584,7 @@ func createTestGraphFromChannels(t *testing.T, useCache bool,
err = graph.SetSourceNode(ctx, dbNode)
require.NoError(t, err)
} else {
err := graph.AddLightningNode(ctx, dbNode)
err := graph.AddNode(ctx, dbNode)
require.NoError(t, err)
}
+2 -2
View File
@@ -2882,7 +2882,7 @@ func TestAddEdgeUnknownVertexes(t *testing.T) {
}
copy(n1.PubKeyBytes[:], priv1.PubKey().SerializeCompressed())
require.NoError(t, ctx.graph.AddLightningNode(ctxb, n1))
require.NoError(t, ctx.graph.AddNode(ctxb, n1))
n2 := &models.Node{
HaveNodeAnnouncement: true,
@@ -2895,7 +2895,7 @@ func TestAddEdgeUnknownVertexes(t *testing.T) {
}
copy(n2.PubKeyBytes[:], priv2.PubKey().SerializeCompressed())
require.NoError(t, ctx.graph.AddLightningNode(ctxb, n2))
require.NoError(t, ctx.graph.AddNode(ctxb, n2))
// Should still be able to find the route, and the info should be
// updated.