Merge branch 'yk/either_methods' into yk/rocksdb-provider-integration
7a177f0
2 days ago
by yongkangc
-0.34%
feat(storage): enhance historical state provider with RocksDB support
Implemented RocksDB-specific methods for account and storage history lookups in the `HistoricalStateProviderRef`. Added conditional compilation for Unix systems with RocksDB enabled, allowing for optimized retrieval of historical data. This includes methods for looking up account and storage history, leveraging RocksDB's capabilities to improve performance and data management. Updated tests to validate the new functionality and ensure compatibility with existing features.
e64f45f
2 days ago
by yongkangc
0%
fix(storage): deduplicate account and storage history indices in RocksDB implementation
Enhanced the `unwind_account_history_indices_rocksdb` and `unwind_storage_history_indices_rocksdb` methods to ensure proper deduplication of entries by retaining only the minimum block number for each address and storage key. This change addresses potential issues with multiple entries in changesets, aligning behavior with RocksDB's snapshot and batch write characteristics.
561e8d0
2 days ago
by yongkangc
0%
docs(storage): enhance comments in database provider for clarity on RocksDB unwinding behavior
Updated comments in the `unwind_account_history_indices_rocksdb` and `unwind_storage_history_indices_rocksdb` methods to include detailed examples illustrating the importance of deduplication when unwinding blocks in RocksDB. This change aims to improve understanding of the "last write wins" behavior and its implications for state management.
21e4013
2 days ago
by yongkangc
0%
fmt
87f90f2
2 days ago
by yongkangc
0%
rm clone
cd1b266
2 days ago
by yongkangc
0%
fmt
0ded2fc
2 days ago
by yongkangc
-1.01%
fix: gate RocksDB tx lookup on feature flag
Only create RocksDB transaction when both:
1. The rocksdb feature is enabled (Unix)
2. The storage setting enables RocksDB routing
Falls back to MDBX path otherwise.
e28d3d6
2 days ago
by yongkangc
+33.6%
Merge branch 'main' into yk/rocksdb-provider-integration
d2a77d8
2 days ago
by yongkangc
+0.34%
Merge branch 'main' into yk/rocksdb-provider-integration
e5b1ecf
2 days ago
by yongkangc
-0.3%
delete
71d6293
2 days ago
by yongkangc
-0.06%
fmt
b182184
2 days ago
by yongkangc
+0.07%
refactor(storage): extract shared history_info_from_shard algorithm
Eliminates code duplication between MDBX and RocksDB backends by
extracting the core rank/select algorithm into a shared function.
- Add `history_info_from_shard()` function in either_writer.rs
- Simplify `account_history_info` and `storage_history_info` in both
MDBX (EitherReader) and RocksDB (RocksTx) to use shared function
- Move HistoryInfo enum to either_writer.rs for better cohesion
- Reduce ~150 lines of duplicated rank/select logic
a66a577
1 day ago
by yongkangc
+0.08%
refactor(storage): move HistoryInfo to historical.rs
Move HistoryInfo enum and history_info_from_shard function from
either_writer.rs to their semantic home in historical.rs where
the history lookup logic belongs.
4b7a711
1 day ago
by yongkangc
+0.08%
docs(storage): add back comments from history_info to history_info_from_shard
Add detailed documentation comments to HistoryInfo enum variants and
history_info_from_shard function based on the original history_info
implementation. Comments are ported exactly from the original function.
This addresses review feedback from @Rjected to ensure the algorithm
is well-documented and equivalent to the original.
381696d
16 hours ago
by yongkangc
-0.03%
style: remove unnecessary semicolons from return statements
0644947
14 hours ago
by yongkangc
-0.29%
docs: remove duplicate algorithm description from doc comment
87635c7
14 hours ago
by yongkangc
+0.27%
docs: add missing comments for NotYetWritten cases
93e5e24
14 hours ago
by yongkangc
-0.04%
fix: remove incompatible provider() method after merge with main