Skip to content

fix: cache ancestry headers across batches#689

Merged
rkrasiuk merged 7 commits into
mainfrom
centaur/cache-ancestry-headers-1784222561
Jul 17, 2026
Merged

fix: cache ancestry headers across batches#689
rkrasiuk merged 7 commits into
mainfrom
centaur/cache-ancestry-headers-1784222561

Conversation

@decofe

@decofe decofe commented Jul 16, 2026

Copy link
Copy Markdown
Member

Summary

  • cache validated, RLP-encoded Tempo headers across overlapping ancestry-mode batches
  • fetch only missing headers, typically the newly produced suffix
  • use a fixed-capacity schnellru::LruMap capped at 262,144 headers (~150 MiB payload)
  • add a mocked-RPC regression proving the second overlapping range fetches only one new header and the cache respects its capacity

Anchor reuse is intentionally deferred to a separate PR.

Validation

  • cargo +nightly fmt --all -- --check
  • cargo metadata --offline --no-deps --format-version 1
  • git diff --check
  • updated schnellru revision is running CI

Prompted by: @rkrasiuk

@0xalpharush

Copy link
Copy Markdown
Contributor

maybe some changes in #692 worth pulling in

@rkrasiuk
rkrasiuk added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit 7fb3455 Jul 17, 2026
16 checks passed
@rkrasiuk
rkrasiuk deleted the centaur/cache-ancestry-headers-1784222561 branch July 17, 2026 12:18
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.

4 participants