mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 07:00:55 +02:00
graph/db: thread context through to UpdateEdgePolicy
This commit is contained in:
@@ -39,7 +39,7 @@ type ChannelGraphSource interface {
|
||||
|
||||
// UpdateEdge is used to update edge information, without this message
|
||||
// edge considered as not fully constructed.
|
||||
UpdateEdge(policy *models.ChannelEdgePolicy,
|
||||
UpdateEdge(ctx context.Context, policy *models.ChannelEdgePolicy,
|
||||
op ...batch.SchedulerOption) error
|
||||
|
||||
// IsStaleNode returns true if the graph source has a node announcement
|
||||
@@ -231,7 +231,7 @@ type DB interface {
|
||||
// node's information. The node ordering is determined by the
|
||||
// lexicographical ordering of the identity public keys of the nodes on
|
||||
// either side of the channel.
|
||||
UpdateEdgePolicy(edge *models.ChannelEdgePolicy,
|
||||
UpdateEdgePolicy(ctx context.Context, edge *models.ChannelEdgePolicy,
|
||||
op ...batch.SchedulerOption) error
|
||||
|
||||
// HasLightningNode determines if the graph has a vertex identified by
|
||||
|
Reference in New Issue
Block a user