-
Notifications
You must be signed in to change notification settings - Fork 2.5k
refactor(provider): use overlay builders in historical state paths #23667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
klkvr
merged 21 commits into
main
from
mediocregopher/historical-state-provider-changeset-cache
Apr 23, 2026
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
c11348f
fix(provider): require changeset cache for historical state providers
mediocregopher 31c0f96
test(node): tighten ethereum e2e helper provider bounds
mediocregopher 58d2a3e
refactor(engine): simplify state provider builder cache wiring
mediocregopher 5bd1a99
fix(provider): restore minimal historical cache plumbing
mediocregopher f652994
refactor(provider): extract overlay builder
mediocregopher 52eec46
refactor(provider): keep overlay caching in factory
mediocregopher 73f8609
refactor(provider): add historical overlay helper
mediocregopher 2fde20f
refactor(provider): preserve historical overlay prefix sets
mediocregopher 56112da
refactor(provider): warn on old historical overlay reverts
mediocregopher 93b0568
refactor(provider): use build_overlay in historical trie paths
mediocregopher 79fc5c5
fix(engine): remove redundant overlay-builder clones
mediocregopher 5561eb0
fix(provider): avoid db-tip lookup for unanchored overlays
mediocregopher 5357dc9
fix(engine): use state provider for serial state root fallback
mediocregopher 93cb59e
refactor(engine): inline serial provider builder reuse
mediocregopher 4b9af81
refactor(provider): restore overlay comments
mediocregopher 7fd39e6
refactor(provider): rename historical changeset cache field
mediocregopher ef63a7a
fix(provider): avoid extra clones in historical proofs
mediocregopher ecf87ff
Merge remote-tracking branch 'origin/main' into mediocregopher/histor…
mediocregopher 2bb7e7f
fix(engine): address payload validator CI failures
mediocregopher 17d58a7
fix(provider): wait for readers before unwind static-file commit
mediocregopher 63f3b1d
test(stages): drop reader before execution unwind
mediocregopher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -205,10 +205,12 @@ impl EngineNodeLauncher { | |
| ctx.blockchain_db().clone(), | ||
| ctx.components().evm_config().clone(), | ||
| || async { | ||
| // Create a separate cache for reorg validator (not shared with main engine) | ||
| let reorg_cache = ChangesetCache::new(); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tangential change, but it's not necessary to have a separate ChangesetCache for debug reorgs, the cache is keyed by block hash anyway. |
||
| validator_builder | ||
| .build_tree_validator(&add_ons_ctx, engine_tree_config.clone(), reorg_cache) | ||
| .build_tree_validator( | ||
| &add_ons_ctx, | ||
| engine_tree_config.clone(), | ||
| changeset_cache.clone(), | ||
| ) | ||
| .await | ||
| }, | ||
| node_config.debug.reorg_frequency, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.