Skip to content
This repository was archived by the owner on Jun 9, 2026. It is now read-only.

feat: Executor cache of recent block headers + VM fallback#217

Merged
ARR4N merged 5 commits into
mainfrom
arr4n/header-cache
Feb 24, 2026
Merged

feat: Executor cache of recent block headers + VM fallback#217
ARR4N merged 5 commits into
mainfrom
arr4n/header-cache

Conversation

@ARR4N

@ARR4N ARR4N commented Feb 21, 2026

Copy link
Copy Markdown
Collaborator

The BLOCKHASH op code requires the core.ChainContext to provide access to the last 256 block headers. This PR adds an LRU into saexec's chainContext implementation and also provides full historical retrieval for all headers via the VM. To achieve the latter, the existing blocks.Source type has two similar types added that don't require a full blocks.Block to be constructed.

@ARR4N ARR4N force-pushed the arr4n/header-cache branch from a0e374f to ebca48c Compare February 21, 2026 18:27
Comment thread sae/vm_test.go
@ARR4N ARR4N changed the title feat: VM sourcing of on-disk ETH blocks/headers + Executor caching thereof feat: Executor cache of recent block headers + VM fallback Feb 22, 2026
@ARR4N ARR4N marked this pull request as ready for review February 22, 2026 19:37
Comment thread saexec/execution.go Outdated
Comment thread saexec/context.go
@ARR4N ARR4N enabled auto-merge (squash) February 24, 2026 15:39
@ARR4N ARR4N merged commit 6c27669 into main Feb 24, 2026
19 checks passed
@ARR4N ARR4N deleted the arr4n/header-cache branch February 24, 2026 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants