graphdb: pass context to PruneTip

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 9f855175d5
commit a31c86b0ee
6 files changed
+16 -11

No files matched your search

+4 -2
View File
@@ -789,8 +789,10 @@ func (c *ChannelGraph) SetSourceNode(ctx context.Context,
}
// PruneTip returns the block height and hash of the latest pruning block.
func (c *ChannelGraph) PruneTip() (*chainhash.Hash, uint32, error) {
return c.db.PruneTip()
func (c *ChannelGraph) PruneTip(ctx context.Context) (*chainhash.Hash,
uint32, error) {
return c.db.PruneTip(ctx)
}
// VersionedGraph is a wrapper around ChannelGraph that will call underlying