@@ -873,7 +873,7 @@ func (b *Builder) assertNodeAnnFreshness(ctx context.Context, node route.Vertex,
873873 // node announcements, we will ignore such nodes. If we do know about
874874 // this node, check that this update brings info newer than what we
875875 // already have.
876- lastUpdate , exists , err := b .cfg .Graph .HasLightningNode (ctx , node )
876+ lastUpdate , exists , err := b .cfg .Graph .HasNode (ctx , node )
877877 if err != nil {
878878 return fmt .Errorf ("unable to query for the " +
879879 "existence of node: %w" , err )
@@ -975,7 +975,7 @@ func (b *Builder) ApplyChannelUpdate(msg *lnwire.ChannelUpdate1) bool {
975975// be ignored.
976976//
977977// NOTE: This method is part of the ChannelGraphSource interface.
978- func (b * Builder ) AddNode (ctx context.Context , node * models.LightningNode ,
978+ func (b * Builder ) AddNode (ctx context.Context , node * models.Node ,
979979 op ... batch.SchedulerOption ) error {
980980
981981 err := b .addNode (ctx , node , op ... )
@@ -988,11 +988,11 @@ func (b *Builder) AddNode(ctx context.Context, node *models.LightningNode,
988988 return nil
989989}
990990
991- // addNode does some basic checks on the given LightningNode against what we
991+ // addNode does some basic checks on the given Node against what we
992992// currently have persisted in the graph, and then adds it to the graph. If we
993993// already know about the node, then we only update our DB if the new update
994994// has a newer timestamp than the last one we received.
995- func (b * Builder ) addNode (ctx context.Context , node * models.LightningNode ,
995+ func (b * Builder ) addNode (ctx context.Context , node * models.Node ,
996996 op ... batch.SchedulerOption ) error {
997997
998998 // Before we add the node to the database, we'll check to see if the
@@ -1003,7 +1003,7 @@ func (b *Builder) addNode(ctx context.Context, node *models.LightningNode,
10031003 return err
10041004 }
10051005
1006- if err := b .cfg .Graph .AddLightningNode (ctx , node , op ... ); err != nil {
1006+ if err := b .cfg .Graph .AddNode (ctx , node , op ... ); err != nil {
10071007 return fmt .Errorf ("unable to add node %x to the " +
10081008 "graph: %w" , node .PubKeyBytes , err )
10091009 }
@@ -1257,15 +1257,15 @@ func (b *Builder) GetChannelByID(chanID lnwire.ShortChannelID) (
12571257 return b .cfg .Graph .FetchChannelEdgesByID (chanID .ToUint64 ())
12581258}
12591259
1260- // FetchLightningNode attempts to look up a target node by its identity public
1260+ // FetchNode attempts to look up a target node by its identity public
12611261// key. graphdb.ErrGraphNodeNotFound is returned if the node doesn't exist
12621262// within the graph.
12631263//
12641264// NOTE: This method is part of the ChannelGraphSource interface.
1265- func (b * Builder ) FetchLightningNode (ctx context.Context ,
1266- node route.Vertex ) (* models.LightningNode , error ) {
1265+ func (b * Builder ) FetchNode (ctx context.Context ,
1266+ node route.Vertex ) (* models.Node , error ) {
12671267
1268- return b .cfg .Graph .FetchLightningNode (ctx , node )
1268+ return b .cfg .Graph .FetchNode (ctx , node )
12691269}
12701270
12711271// ForAllOutgoingChannels is used to iterate over all outgoing channels owned by
0 commit comments