Skip to content

Commit

Permalink
fix 'cannot resolve old cursor' error
Browse files Browse the repository at this point in the history
  • Loading branch information
sduchesneau committed Sep 12, 2024
1 parent 7dff702 commit a2fbe8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

### Server

* Fix "cannot resolve 'old cursor' from files in passthrough mode" error on some requests with an old cursor
* Fix handling of 'special case' substreams module with only "params" as its input: should not skip this execution (used in graph-node for head tracking)
-> empty files in module cache with hash `d3b1920483180cbcd2fd10abcabbee431146f4c8` should be deleted for consistency

Expand Down
6 changes: 6 additions & 0 deletions pipeline/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func BuildRequestDetails(
req.LinearGateBlockNum = req.ResolvedStartBlockNum
}

// if we start under the linearHandoff, it means we are in an irreversible section of the chain,
// the cursor has been resolved to 'resolvedStartBlockNum' and 'undoSignal', so it is not needed anymore
if req.ResolvedStartBlockNum < linearHandoff {
req.ResolvedCursor = ""
}

return
}

Expand Down

0 comments on commit a2fbe8e

Please sign in to comment.