multi: rename models.LightningNode to models.Node
This commit is contained in:
26 files changed
+212
-214
No files matched your search
+4
-4
@@ -975,7 +975,7 @@ func (b *Builder) ApplyChannelUpdate(msg *lnwire.ChannelUpdate1) bool {
|
||||
// be ignored.
|
||||
//
|
||||
// NOTE: This method is part of the ChannelGraphSource interface.
|
||||
func (b *Builder) AddNode(ctx context.Context, node *models.LightningNode,
|
||||
func (b *Builder) AddNode(ctx context.Context, node *models.Node,
|
||||
op ...batch.SchedulerOption) error {
|
||||
|
||||
err := b.addNode(ctx, node, op...)
|
||||
@@ -988,11 +988,11 @@ func (b *Builder) AddNode(ctx context.Context, node *models.LightningNode,
|
||||
return nil
|
||||
}
|
||||
|
||||
// addNode does some basic checks on the given LightningNode against what we
|
||||
// addNode does some basic checks on the given Node against what we
|
||||
// currently have persisted in the graph, and then adds it to the graph. If we
|
||||
// already know about the node, then we only update our DB if the new update
|
||||
// has a newer timestamp than the last one we received.
|
||||
func (b *Builder) addNode(ctx context.Context, node *models.LightningNode,
|
||||
func (b *Builder) addNode(ctx context.Context, node *models.Node,
|
||||
op ...batch.SchedulerOption) error {
|
||||
|
||||
// Before we add the node to the database, we'll check to see if the
|
||||
@@ -1263,7 +1263,7 @@ func (b *Builder) GetChannelByID(chanID lnwire.ShortChannelID) (
|
||||
//
|
||||
// NOTE: This method is part of the ChannelGraphSource interface.
|
||||
func (b *Builder) FetchLightningNode(ctx context.Context,
|
||||
node route.Vertex) (*models.LightningNode, error) {
|
||||
node route.Vertex) (*models.Node, error) {
|
||||
|
||||
return b.cfg.Graph.FetchLightningNode(ctx, node)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user