-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
C-enhancementNew feature or requestNew feature or requestS-needs-triageThis issue needs to be labelledThis issue needs to be labelled
Description
Describe the feature
The DatabaseProvider is the main way we read from and write to the database and static files. We should add the RocksDBProvider to DatabaseProvider:
reth/crates/storage/provider/src/providers/database/provider.rs
Lines 151 to 169 in 179e164
| /// A provider struct that fetches data from the database. | |
| /// Wrapper around [`DbTx`] and [`DbTxMut`]. Example: [`HeaderProvider`] [`BlockHashReader`] | |
| #[derive(Debug)] | |
| pub struct DatabaseProvider<TX, N: NodeTypes> { | |
| /// Database transaction. | |
| tx: TX, | |
| /// Chain spec | |
| chain_spec: Arc<N::ChainSpec>, | |
| /// Static File provider | |
| static_file_provider: StaticFileProvider<N::Primitives>, | |
| /// Pruning configuration | |
| prune_modes: PruneModes, | |
| /// Node storage handler. | |
| storage: Arc<N::Storage>, | |
| /// Storage configuration settings for this node | |
| storage_settings: Arc<RwLock<StorageSettings>>, | |
| /// Minimum distance from tip required for pruning | |
| minimum_pruning_distance: u64, | |
| } |
So that we can use RocksDB in provider implementations.
Additional context
No response
Metadata
Metadata
Labels
C-enhancementNew feature or requestNew feature or requestS-needs-triageThis issue needs to be labelledThis issue needs to be labelled
Type
Projects
Status
Backlog