graph/db: thread context through FilterChannelRange

This commit is contained in:
Elle Mouton committed 2026-02-25 15:33:34 +02:00
1 parent e8e714f6a3
commit bb38aa8922
6 files changed
+16 -13

No files matched your search

+6 -3
View File
@@ -711,10 +711,13 @@ func (c *ChannelGraph) ChanUpdatesInHorizon(ctx context.Context,
}
// FilterChannelRange returns channel IDs within the passed block height range.
func (c *ChannelGraph) FilterChannelRange(startHeight, endHeight uint32,
withTimestamps bool) ([]BlockChannelRange, error) {
func (c *ChannelGraph) FilterChannelRange(ctx context.Context,
startHeight, endHeight uint32, withTimestamps bool) (
[]BlockChannelRange, error) {
return c.db.FilterChannelRange(startHeight, endHeight, withTimestamps)
return c.db.FilterChannelRange(
ctx, startHeight, endHeight, withTimestamps,
)
}
// FetchChanInfos returns the set of channel edges for the passed channel IDs.