Skip to content

fix(archiver): backport filter tagged log queries by block number to v4#21430

Closed
AztecBot wants to merge 2 commits intobackport-to-v4-stagingfrom
claudebox/backport-archiver-tagged-log-filter-v4
Closed

fix(archiver): backport filter tagged log queries by block number to v4#21430
AztecBot wants to merge 2 commits intobackport-to-v4-stagingfrom
claudebox/backport-archiver-tagged-log-filter-v4

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #21388 to v4.

Resolves the referenceBlock hash to a block number in the AztecNode and passes it down as upToBlockNumber so the LogStore stops returning logs from blocks beyond the client's sync point. Also adds an ordering check on log insertion to guard against out-of-order appends.

Cherry-pick details

  • Commit 1: Raw cherry-pick with conflict markers in errors.ts
  • Commit 2: Conflict resolution — dropped BlockAlreadyCheckpointedError (not present on v4), kept only OutOfOrderLogInsertionError

No additional build fixes were needed — all types and methods exist on v4.

ClaudeBox log: https://claudebox.work/s/b4ef30f9721afb3e?run=1

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 12, 2026
@ludamad
Copy link
Collaborator

ludamad commented Mar 12, 2026

Closing as duplicate — superseded by a newer attempt.

@ludamad ludamad closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants