graphdb: pass context to ChannelID

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:29 +02:00
1 parent 3079c07afb
commit 397330cbdb
6 files changed
+9 -8

No files matched your search

+4 -2
View File
@@ -986,8 +986,10 @@ func (c *VersionedGraph) HighestChanID(ctx context.Context) (uint64, error) {
}
// ChannelID attempts to lookup the 8-byte compact channel ID.
func (c *VersionedGraph) ChannelID(chanPoint *wire.OutPoint) (uint64, error) {
return c.db.ChannelID(c.v, chanPoint)
func (c *VersionedGraph) ChannelID(ctx context.Context,
chanPoint *wire.OutPoint) (uint64, error) {
return c.db.ChannelID(ctx, c.v, chanPoint)
}
// IsPublicNode determines whether the node is seen as public in the graph.