Skip to content

fix(archiver): harden v4 L2 tips cache refresh#24237

Open
spalladino wants to merge 2 commits into
backport-to-v4-next-stagingfrom
spl/a1235-v4-blockstream-fix
Open

fix(archiver): harden v4 L2 tips cache refresh#24237
spalladino wants to merge 2 commits into
backport-to-v4-next-stagingfrom
spl/a1235-v4-blockstream-fix

Conversation

@spalladino

@spalladino spalladino commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • move L2 tips cache refreshes out of ArchiverDataStoreUpdater writer transactions
  • assemble cached L2 tips through a single BlockStore transaction/snapshot
  • add regression coverage ensuring aborted writer transactions do not replace the tips cache

Upstream

Tests

  • yarn workspace @aztec/archiver test src/modules/data_store_updater.test.ts
  • yarn workspace @aztec/archiver build

spalladino and others added 2 commits June 23, 2026 12:11
…n refresh regression

The previous test mocked the first writer op to reject, so refresh() was never
reached on abort in either layout and the test passed even without the fix. Inject
the failure at commit time instead, after the transaction body (and any
in-transaction refresh) has run, so a regressed implementation that refreshes
inside the writer transaction pollutes the cache with the rolled-back block.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant