-
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
We should add a flag here indicating that StoragesHistory is stored in RocksDB
reth/crates/storage/db-api/src/models/metadata.rs
Lines 6 to 25 in 179e164
| /// Storage configuration settings for this node. | |
| /// | |
| /// These should be set during `init_genesis` or `init_db` depending on whether we want dictate | |
| /// behaviour of new or old nodes respectively. | |
| #[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize, Compact)] | |
| #[cfg_attr(any(test, feature = "arbitrary"), derive(arbitrary::Arbitrary))] | |
| #[add_arbitrary_tests(compact)] | |
| pub struct StorageSettings { | |
| /// Whether this node always writes receipts to static files. | |
| /// | |
| /// If this is set to FALSE AND receipt pruning IS ENABLED, all receipts should be written to DB. Otherwise, they should be written to static files. This ensures that older nodes do not need to migrate their current DB tables to static files. For more, read: <https://github.com/paradigmxyz/reth/issues/18890#issuecomment-3457760097> | |
| #[serde(default)] | |
| pub receipts_in_static_files: bool, | |
| /// Whether this node always writes transaction senders to static files. | |
| #[serde(default)] | |
| pub transaction_senders_in_static_files: bool, | |
| /// Whether this node should read and write account changesets from static files. | |
| #[serde(default)] | |
| pub account_changesets_in_static_files: bool, | |
| } |
It should be false by default
Additional context
No response
Metadata
Metadata
Assignees
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