Repository navigation
feat(storage): diff-layer state storage with an in-memory LRU cache #444
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
Merged
Changes from 9 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
1a060f2
feat(storage): diff-layer state storage with an in-memory LRU cache
MegaRedHand d0c7110
Merge branch 'main' into feat/state-diff-layers
MegaRedHand 0ea9936
tune(storage): set STATE_CACHE_CAPACITY to 32
MegaRedHand 027532f
Merge remote-tracking branch 'origin/feat/state-diff-layers' into wor…
MegaRedHand 191ff9d
test: build diff against genesis anchor, not the target state
MegaRedHand 39a7f50
Merge branch 'main' into feat/state-diff-layers
MegaRedHand 98e2630
test: construct DiffBase via from_state in storage tests
MegaRedHand a8cf352
Merge remote-tracking branch 'origin/feat/state-diff-layers' into wor…
MegaRedHand 9487965
docs: correct storage tables list to match the 7-variant Table enum
MegaRedHand c8fec91
test: remove ssz_roundtrip test
MegaRedHand bdbd436
test(storage): add unit tests for state reconstruct
MegaRedHand 8ef2010
Merge branch 'main' into feat/state-diff-layers
MegaRedHand 92b7c7f
Apply suggestion from @greptile-apps[bot]
pablodeymo 3bb11c3
refactor(storage): drop DiffBase, derive diff base from the post-state
MegaRedHand 84e87e2
refactor(storage): inline SSZ reads, drop the get_ssz helper
MegaRedHand a78768c
refactor(storage): build StateDiff from pre- and post-state
MegaRedHand a927032
test(storage): drop diff_at, build reconstruct inputs via from_states
MegaRedHand a43b42c
refactor(storage): derive StateDiff history instead of storing it
MegaRedHand d351ffc
docs: revert comment
MegaRedHand da728e0
refactor(storage): return StateDiffError from from_states instead of …
MegaRedHand 86dd881
test(storage): drop the from_states error-path unit test
MegaRedHand f7c9f5f
chore: fmt
MegaRedHand f3d5614
Merge branch 'main' into feat/state-diff-layers
MegaRedHand 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
|---|---|---|
| @@ -1,7 +1,9 @@ | ||
| mod api; | ||
| pub mod backend; | ||
| mod error; | ||
| mod state_diff; | ||
| mod store; | ||
|
|
||
| pub use api::{ALL_TABLES, StorageBackend, StorageReadView, StorageWriteBatch, Table}; | ||
| pub use state_diff::DiffBase; | ||
| pub use store::{ForkCheckpoints, GetForkchoiceStoreError, MAX_RESUMABLE_DB_STATE_AGE, Store}; |
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.