-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(storage): add EitherReader for routing history queries to MDBX or RocksDB #21063
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 all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
f500a60
feat(storage): wire RocksDB into history lookups via EitherReader
yongkangc ce83f24
refactor(provider): simplify EitherReader and encapsulate RocksDB logic
yongkangc a5166e5
fix: use PhantomData in EitherReader to capture lifetime 'a
yongkangc a5b7df0
fix: clippy warnings and fmt issues
yongkangc 5c83f72
refactor(provider): extract compute_history_rank helper to reduce dup…
yongkangc 3a8dc3e
refactor: use compute_history_rank in history_info to reduce duplication
yongkangc 8a65700
fix: remove unused PhantomData in test EitherReader::Database constru…
yongkangc 98ff8a1
fix(rocksdb): treat empty RocksDB tables as first-run scenario
yongkangc 819c32d
fix(rocksdb): handle sentinel-only entries in consistency check
yongkangc fdd7776
fix: use proper shard logic for history indices in RocksDB write_bloc…
yongkangc 6892124
refactor: revert either_writer.rs to main's implementation
yongkangc 2ee1ca2
revert: remove changes to database/provider.rs
yongkangc 96932ca
fix: improve RocksDB shard handling and cache provider in historical …
yongkangc 60d7439
refactor: extract fallback helper in RocksTx::history_info and improv…
yongkangc a8a7e33
refactor: remove RocksDBProvider caching from HistoricalStateProviderRef
yongkangc 50e5fbb
fix: add debug_assert for one-append-per-key invariant in RocksDBBatch
yongkangc 3d8e626
fix: add backticks for clippy doc_markdown lint
yongkangc 4418697
chore: remove unused debug_assertions fields from RocksDBBatch
yongkangc d2af6c5
Update crates/storage/provider/src/providers/rocksdb/provider.rs
yongkangc 070ab22
feat(cli): add rocksdb feature flag to reth binary
yongkangc c8af44c
fix: address joshieDo's review comments
yongkangc 280f62c
fix: remove unnecessary edge feature additions
yongkangc bea16c0
refactor: remove debug_assertions tracking from RocksDBBatch
yongkangc 6fc4f39
Apply suggestion from @yongkangc
yongkangc 1f25e0d
Apply suggestion from @yongkangc
yongkangc 84c4138
refactor: derive Debug for HistoricalStateProviderRef
yongkangc 7e0c050
Update crates/storage/provider/src/providers/rocksdb/provider.rs
yongkangc 60e35bd
Update crates/storage/provider/src/providers/rocksdb/provider.rs
yongkangc 771ff64
fix: restore manual Debug impl for HistoricalStateProviderRef, format…
yongkangc 607b017
refactor: use derive(Debug) for HistoricalStateProviderRef
yongkangc 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved this to rocksdb_provider.rs trait so so all implementors get it for free without duplicating the cfg-gated boilerplate