graphdb: pass context to PruneGraph

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 13668ce45f
commit 7dbaa691c4
6 files changed
+28 -22

No files matched your search

+3 -2
View File
@@ -446,12 +446,13 @@ func (c *ChannelGraph) DisconnectBlockAtHeight(height uint32) (
// prune the graph is stored so callers can ensure the graph is fully in sync
// with the current UTXO state. A slice of channels that have been closed by
// the target block are returned if the function succeeds without error.
func (c *ChannelGraph) PruneGraph(spentOutputs []*wire.OutPoint,
func (c *ChannelGraph) PruneGraph(ctx context.Context,
spentOutputs []*wire.OutPoint,
blockHash *chainhash.Hash, blockHeight uint32) (
[]*models.ChannelEdgeInfo, error) {
edges, nodes, err := c.db.PruneGraph(
spentOutputs, blockHash, blockHeight,
ctx, spentOutputs, blockHash, blockHeight,
)
if err != nil {
return nil, err