graphdb: pass context to DisconnectBlockAtHeight

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

No files matched your search

+4 -2
View File
@@ -366,7 +366,9 @@ func (b *Builder) syncGraphWithChain() error {
"(hash=%v)", pruneHeight, pruneHash)
// Prune the graph for every channel that was opened at height
// >= pruneHeight.
_, err := b.cfg.Graph.DisconnectBlockAtHeight(pruneHeight)
_, err := b.cfg.Graph.DisconnectBlockAtHeight(
context.TODO(), pruneHeight,
)
if err != nil {
return err
}
@@ -687,7 +689,7 @@ func (b *Builder) networkHandler() {
// Update the channel graph to reflect that this block
// was disconnected.
_, err := b.cfg.Graph.DisconnectBlockAtHeight(
blockHeight,
context.TODO(), blockHeight,
)
if err != nil {
log.Errorf("unable to prune graph with stale "+