graph/db: thread context through to SourceNode

This commit is contained in:
Elle Mouton
2025-06-17 21:02:42 +02:00
parent 65049ddd02
commit 7ba4051cfd
12 changed files with 49 additions and 32 deletions

View File

@@ -134,7 +134,7 @@ type DB interface {
// treated as the center node within a star-graph. This method may be
// used to kick off a path finding algorithm in order to explore the
// reachability of another node based off the source node.
SourceNode() (*models.LightningNode, error)
SourceNode(ctx context.Context) (*models.LightningNode, error)
// DisabledChannelIDs returns the channel ids of disabled channels.
// A channel is disabled when two of the associated ChanelEdgePolicies