Commits
Click on a commit to change the comparison rangefeat(stages): add RocksDB support for IndexAccountHistoryStage
This implements RocksDB support for the IndexAccountHistoryStage following
the TransactionLookupStage pattern:
- Add RocksDBProviderFactory trait bound to Stage impl
- Use explicit #[cfg(all(unix, feature = "rocksdb"))] blocks for RocksDB batch
creation instead of macros
- Use EitherWriter::new_accounts_history to route writes to MDBX or RocksDB
based on storage settings
- Add inline helper functions for loading/flushing shards with proper u64::MAX
handling for last shard
- Add RocksDB-specific tests: execute_writes_to_rocksdb_when_enabled,
unwind_deletes_from_rocksdb_when_enabled, execute_incremental_sync
Note: Full unwind support for RocksDB requires updates to the HistoryWriter
trait implementation, which is out of scope for this PR.
Closes #2112410 hours ago
by yongkangc