From dd72cfe23ee1626d8c490cf9e32b88e3931abab0 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Wed, 21 Jan 2026 08:52:24 -0800 Subject: [PATCH] refactor: remove static_files.to_settings() and add edge feature to RocksDB flags (#21225) --- Cargo.lock | 1 - crates/cli/commands/src/common.rs | 21 ++++- crates/node/builder/src/launch/common.rs | 10 +-- crates/node/core/Cargo.toml | 3 +- crates/node/core/src/args/rocksdb.rs | 88 +++++++++++++------ crates/node/core/src/args/static_files.rs | 13 --- crates/node/core/src/node_config.rs | 21 ++--- crates/storage/db-api/src/models/metadata.rs | 15 ++++ docs/vocs/docs/pages/cli/op-reth/db.mdx | 30 +++++++ .../vocs/docs/pages/cli/op-reth/import-op.mdx | 30 +++++++ .../pages/cli/op-reth/import-receipts-op.mdx | 30 +++++++ .../docs/pages/cli/op-reth/init-state.mdx | 30 +++++++ docs/vocs/docs/pages/cli/op-reth/init.mdx | 30 +++++++ docs/vocs/docs/pages/cli/op-reth/node.mdx | 15 +++- docs/vocs/docs/pages/cli/op-reth/prune.mdx | 30 +++++++ .../docs/pages/cli/op-reth/re-execute.mdx | 30 +++++++ .../docs/pages/cli/op-reth/stage/drop.mdx | 30 +++++++ .../docs/pages/cli/op-reth/stage/dump.mdx | 30 +++++++ .../vocs/docs/pages/cli/op-reth/stage/run.mdx | 30 +++++++ .../docs/pages/cli/op-reth/stage/unwind.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/db.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/download.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/export-era.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/import-era.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/import.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/init-state.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/init.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/node.mdx | 15 +++- docs/vocs/docs/pages/cli/reth/prune.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/re-execute.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/stage/drop.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/stage/dump.mdx | 30 +++++++ docs/vocs/docs/pages/cli/reth/stage/run.mdx | 30 +++++++ .../vocs/docs/pages/cli/reth/stage/unwind.mdx | 30 +++++++ 34 files changed, 851 insertions(+), 71 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 31ad77a44b..c2ea2d8670 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9442,7 +9442,6 @@ dependencies = [ "reth-network-p2p", "reth-network-peers", "reth-primitives-traits", - "reth-provider", "reth-prune-types", "reth-rpc-convert", "reth-rpc-eth-types", diff --git a/crates/cli/commands/src/common.rs b/crates/cli/commands/src/common.rs index 56d574f74c..4cd8c29d7a 100644 --- a/crates/cli/commands/src/common.rs +++ b/crates/cli/commands/src/common.rs @@ -19,7 +19,7 @@ use reth_node_builder::{ Node, NodeComponents, NodeComponentsBuilder, NodeTypes, NodeTypesWithDBAdapter, }; use reth_node_core::{ - args::{DatabaseArgs, DatadirArgs, StaticFilesArgs}, + args::{DatabaseArgs, DatadirArgs, RocksDbArgs, StaticFilesArgs}, dirs::{ChainPath, DataDirPath}, }; use reth_provider::{ @@ -27,7 +27,7 @@ use reth_provider::{ BlockchainProvider, NodeTypesForProvider, RocksDBProvider, StaticFileProvider, StaticFileProviderBuilder, }, - ProviderFactory, StaticFileProviderFactory, + ProviderFactory, StaticFileProviderFactory, StorageSettings, }; use reth_stages::{sets::DefaultStages, Pipeline, PipelineTarget}; use reth_static_file::StaticFileProducer; @@ -66,9 +66,24 @@ pub struct EnvironmentArgs { /// All static files related arguments #[command(flatten)] pub static_files: StaticFilesArgs, + + /// All `RocksDB` related arguments + #[command(flatten)] + pub rocksdb: RocksDbArgs, } impl EnvironmentArgs { + /// Returns the effective storage settings derived from static-file and `RocksDB` CLI args. + pub fn storage_settings(&self) -> StorageSettings { + StorageSettings::base() + .with_receipts_in_static_files(self.static_files.receipts) + .with_transaction_senders_in_static_files(self.static_files.transaction_senders) + .with_account_changesets_in_static_files(self.static_files.account_changesets) + .with_transaction_hash_numbers_in_rocksdb(self.rocksdb.all || self.rocksdb.tx_hash) + .with_storages_history_in_rocksdb(self.rocksdb.all || self.rocksdb.storages_history) + .with_account_history_in_rocksdb(self.rocksdb.all || self.rocksdb.account_history) + } + /// Initializes environment according to [`AccessRights`] and returns an instance of /// [`Environment`]. pub fn init(&self, access: AccessRights) -> eyre::Result> @@ -131,7 +146,7 @@ impl EnvironmentArgs { self.create_provider_factory(&config, db, sfp, rocksdb_provider, access)?; if access.is_read_write() { debug!(target: "reth::cli", chain=%self.chain.chain(), genesis=?self.chain.genesis_hash(), "Initializing genesis"); - init_genesis_with_settings(&provider_factory, self.static_files.to_settings())?; + init_genesis_with_settings(&provider_factory, self.storage_settings())?; } Ok(Environment { config, provider_factory, data_dir }) diff --git a/crates/node/builder/src/launch/common.rs b/crates/node/builder/src/launch/common.rs index e351fe96f6..d97ecab876 100644 --- a/crates/node/builder/src/launch/common.rs +++ b/crates/node/builder/src/launch/common.rs @@ -676,19 +676,13 @@ where /// Convenience function to [`Self::init_genesis`] pub fn with_genesis(self) -> Result { - init_genesis_with_settings( - self.provider_factory(), - self.node_config().static_files.to_settings(), - )?; + init_genesis_with_settings(self.provider_factory(), self.node_config().storage_settings())?; Ok(self) } /// Write the genesis block and state if it has not already been written pub fn init_genesis(&self) -> Result { - init_genesis_with_settings( - self.provider_factory(), - self.node_config().static_files.to_settings(), - ) + init_genesis_with_settings(self.provider_factory(), self.node_config().storage_settings()) } /// Creates a new `WithMeteredProvider` container and attaches it to the diff --git a/crates/node/core/Cargo.toml b/crates/node/core/Cargo.toml index 2be74b1761..676f507c13 100644 --- a/crates/node/core/Cargo.toml +++ b/crates/node/core/Cargo.toml @@ -19,7 +19,6 @@ reth-cli-util.workspace = true reth-db = { workspace = true, features = ["mdbx"] } reth-storage-errors.workspace = true reth-storage-api = { workspace = true, features = ["std", "db-api"] } -reth-provider.workspace = true reth-network = { workspace = true, features = ["serde"] } reth-network-p2p.workspace = true reth-rpc-eth-types.workspace = true @@ -92,7 +91,7 @@ min-debug-logs = ["tracing/release_max_level_debug"] min-trace-logs = ["tracing/release_max_level_trace"] # Marker feature for edge/unstable builds - captured by vergen in build.rs -edge = ["reth-provider/edge"] +edge = ["reth-storage-api/edge"] [build-dependencies] vergen = { workspace = true, features = ["build", "cargo", "emit_and_set"] } diff --git a/crates/node/core/src/args/rocksdb.rs b/crates/node/core/src/args/rocksdb.rs index 61bc33bc90..ad3b5dc8d3 100644 --- a/crates/node/core/src/args/rocksdb.rs +++ b/crates/node/core/src/args/rocksdb.rs @@ -2,11 +2,19 @@ use clap::{ArgAction, Args}; +/// Default value for `RocksDB` routing flags. +/// +/// When the `edge` feature is enabled, defaults to `true` to enable edge storage features. +/// Otherwise defaults to `false` for legacy behavior. +const fn default_rocksdb_flag() -> bool { + cfg!(feature = "edge") +} + /// Parameters for `RocksDB` table routing configuration. /// /// These flags control which database tables are stored in `RocksDB` instead of MDBX. /// All flags are genesis-initialization-only: changing them after genesis requires a re-sync. -#[derive(Debug, Args, PartialEq, Eq, Default, Clone, Copy)] +#[derive(Debug, Args, PartialEq, Eq, Clone, Copy)] #[command(next_help_heading = "RocksDB")] pub struct RocksDbArgs { /// Route all supported tables to `RocksDB` instead of MDBX. @@ -17,31 +25,51 @@ pub struct RocksDbArgs { pub all: bool, /// Route tx hash -> number table to `RocksDB` instead of MDBX. - #[arg(long = "rocksdb.tx-hash", action = ArgAction::Set)] - pub tx_hash: Option, + /// + /// This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. + /// Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + #[arg(long = "rocksdb.tx-hash", default_value_t = default_rocksdb_flag(), action = ArgAction::Set)] + pub tx_hash: bool, /// Route storages history tables to `RocksDB` instead of MDBX. - #[arg(long = "rocksdb.storages-history", action = ArgAction::Set)] - pub storages_history: Option, + /// + /// This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. + /// Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + #[arg(long = "rocksdb.storages-history", default_value_t = default_rocksdb_flag(), action = ArgAction::Set)] + pub storages_history: bool, /// Route account history tables to `RocksDB` instead of MDBX. - #[arg(long = "rocksdb.account-history", action = ArgAction::Set)] - pub account_history: Option, + /// + /// This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. + /// Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + #[arg(long = "rocksdb.account-history", default_value_t = default_rocksdb_flag(), action = ArgAction::Set)] + pub account_history: bool, +} + +impl Default for RocksDbArgs { + fn default() -> Self { + Self { + all: false, + tx_hash: default_rocksdb_flag(), + storages_history: default_rocksdb_flag(), + account_history: default_rocksdb_flag(), + } + } } impl RocksDbArgs { /// Validates the `RocksDB` arguments. /// /// Returns an error if `--rocksdb.all` is used with any individual flag set to `false`. - pub fn validate(&self) -> Result<(), RocksDbArgsError> { + pub const fn validate(&self) -> Result<(), RocksDbArgsError> { if self.all { - if self.tx_hash == Some(false) { + if !self.tx_hash { return Err(RocksDbArgsError::ConflictingFlags("tx-hash")); } - if self.storages_history == Some(false) { + if !self.storages_history { return Err(RocksDbArgsError::ConflictingFlags("storages-history")); } - if self.account_history == Some(false) { + if !self.account_history { return Err(RocksDbArgsError::ConflictingFlags("account-history")); } } @@ -78,7 +106,7 @@ mod tests { fn test_parse_all_flag() { let args = CommandParser::::parse_from(["reth", "--rocksdb.all"]).args; assert!(args.all); - assert_eq!(args.tx_hash, None); + assert_eq!(args.tx_hash, default_rocksdb_flag()); } #[test] @@ -91,32 +119,42 @@ mod tests { ]) .args; assert!(!args.all); - assert_eq!(args.tx_hash, Some(true)); - assert_eq!(args.storages_history, Some(false)); - assert_eq!(args.account_history, Some(true)); - } - - #[test] - fn test_validate_all_alone_ok() { - let args = RocksDbArgs { all: true, ..Default::default() }; - assert!(args.validate().is_ok()); + assert!(args.tx_hash); + assert!(!args.storages_history); + assert!(args.account_history); } #[test] fn test_validate_all_with_true_ok() { - let args = RocksDbArgs { all: true, tx_hash: Some(true), ..Default::default() }; + let args = + RocksDbArgs { all: true, tx_hash: true, storages_history: true, account_history: true }; assert!(args.validate().is_ok()); } #[test] fn test_validate_all_with_false_errors() { - let args = RocksDbArgs { all: true, tx_hash: Some(false), ..Default::default() }; + let args = RocksDbArgs { + all: true, + tx_hash: false, + storages_history: true, + account_history: true, + }; assert_eq!(args.validate(), Err(RocksDbArgsError::ConflictingFlags("tx-hash"))); - let args = RocksDbArgs { all: true, storages_history: Some(false), ..Default::default() }; + let args = RocksDbArgs { + all: true, + tx_hash: true, + storages_history: false, + account_history: true, + }; assert_eq!(args.validate(), Err(RocksDbArgsError::ConflictingFlags("storages-history"))); - let args = RocksDbArgs { all: true, account_history: Some(false), ..Default::default() }; + let args = RocksDbArgs { + all: true, + tx_hash: true, + storages_history: true, + account_history: false, + }; assert_eq!(args.validate(), Err(RocksDbArgsError::ConflictingFlags("account-history"))); } } diff --git a/crates/node/core/src/args/static_files.rs b/crates/node/core/src/args/static_files.rs index aa52164f2f..d0048022cf 100644 --- a/crates/node/core/src/args/static_files.rs +++ b/crates/node/core/src/args/static_files.rs @@ -2,7 +2,6 @@ use clap::Args; use reth_config::config::{BlocksPerFileConfig, StaticFilesConfig}; -use reth_provider::StorageSettings; /// Blocks per static file when running in `--minimal` node. /// @@ -102,18 +101,6 @@ impl StaticFilesArgs { }, } } - - /// Converts the static files arguments into [`StorageSettings`]. - pub const fn to_settings(&self) -> StorageSettings { - #[cfg(feature = "edge")] - let base = StorageSettings::edge(); - #[cfg(not(feature = "edge"))] - let base = StorageSettings::legacy(); - - base.with_receipts_in_static_files(self.receipts) - .with_transaction_senders_in_static_files(self.transaction_senders) - .with_account_changesets_in_static_files(self.account_changesets) - } } impl Default for StaticFilesArgs { diff --git a/crates/node/core/src/node_config.rs b/crates/node/core/src/node_config.rs index aeff14a875..98502fdd11 100644 --- a/crates/node/core/src/node_config.rs +++ b/crates/node/core/src/node_config.rs @@ -358,19 +358,14 @@ impl NodeConfig { } /// Returns the effective storage settings derived from static-file and `RocksDB` CLI args. - pub fn storage_settings(&self) -> StorageSettings { - let tx_hash = self.rocksdb.all || self.rocksdb.tx_hash.unwrap_or(false); - let storages_history = self.rocksdb.all || self.rocksdb.storages_history.unwrap_or(false); - let account_history = self.rocksdb.all || self.rocksdb.account_history.unwrap_or(false); - - StorageSettings { - receipts_in_static_files: self.static_files.receipts, - transaction_senders_in_static_files: self.static_files.transaction_senders, - account_changesets_in_static_files: self.static_files.account_changesets, - transaction_hash_numbers_in_rocksdb: tx_hash, - storages_history_in_rocksdb: storages_history, - account_history_in_rocksdb: account_history, - } + pub const fn storage_settings(&self) -> StorageSettings { + StorageSettings::base() + .with_receipts_in_static_files(self.static_files.receipts) + .with_transaction_senders_in_static_files(self.static_files.transaction_senders) + .with_account_changesets_in_static_files(self.static_files.account_changesets) + .with_transaction_hash_numbers_in_rocksdb(self.rocksdb.all || self.rocksdb.tx_hash) + .with_storages_history_in_rocksdb(self.rocksdb.all || self.rocksdb.storages_history) + .with_account_history_in_rocksdb(self.rocksdb.all || self.rocksdb.account_history) } /// Returns the max block that the node should run to, looking it up from the network if diff --git a/crates/storage/db-api/src/models/metadata.rs b/crates/storage/db-api/src/models/metadata.rs index b3dc471093..a12e9b6dab 100644 --- a/crates/storage/db-api/src/models/metadata.rs +++ b/crates/storage/db-api/src/models/metadata.rs @@ -34,6 +34,21 @@ pub struct StorageSettings { } impl StorageSettings { + /// Returns the default base `StorageSettings` for this build. + /// + /// When the `edge` feature is enabled, returns [`Self::edge()`]. + /// Otherwise, returns [`Self::legacy()`]. + pub const fn base() -> Self { + #[cfg(feature = "edge")] + { + Self::edge() + } + #[cfg(not(feature = "edge"))] + { + Self::legacy() + } + } + /// Creates `StorageSettings` for edge nodes with all storage features enabled: /// - Receipts and transaction senders in static files /// - History indices in `RocksDB` (storages, accounts, transaction hashes) diff --git a/docs/vocs/docs/pages/cli/op-reth/db.mdx b/docs/vocs/docs/pages/cli/op-reth/db.mdx index 335b54cba6..9d5fd0032a 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db.mdx @@ -154,6 +154,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/op-reth/import-op.mdx b/docs/vocs/docs/pages/cli/op-reth/import-op.mdx index 891439b4f6..95ef59d63e 100644 --- a/docs/vocs/docs/pages/cli/op-reth/import-op.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/import-op.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --chunk-len Chunk byte length to read from file. diff --git a/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx b/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx index cabcf3b040..499017a379 100644 --- a/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/import-receipts-op.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --chunk-len Chunk byte length to read from file. diff --git a/docs/vocs/docs/pages/cli/op-reth/init-state.mdx b/docs/vocs/docs/pages/cli/op-reth/init-state.mdx index 429c4fe1f0..9637e30cd6 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init-state.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --without-evm Specifies whether to initialize the state without relying on EVM historical data. diff --git a/docs/vocs/docs/pages/cli/op-reth/init.mdx b/docs/vocs/docs/pages/cli/op-reth/init.mdx index 1094918f33..01cd9d866a 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/op-reth/node.mdx b/docs/vocs/docs/pages/cli/op-reth/node.mdx index c2de9fae56..3493c9ac4b 100644 --- a/docs/vocs/docs/pages/cli/op-reth/node.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/node.mdx @@ -904,18 +904,27 @@ RocksDB: This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. --rocksdb.tx-hash - Route tx hash -> number table to `RocksDB` instead of MDBX + Route tx hash -> number table to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] --rocksdb.storages-history - Route storages history tables to `RocksDB` instead of MDBX + Route storages history tables to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] --rocksdb.account-history - Route account history tables to `RocksDB` instead of MDBX + Route account history tables to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] Engine: diff --git a/docs/vocs/docs/pages/cli/op-reth/prune.mdx b/docs/vocs/docs/pages/cli/op-reth/prune.mdx index 953e77d6ca..1409abf05f 100644 --- a/docs/vocs/docs/pages/cli/op-reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/prune.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx b/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx index 8e40a32b9e..484805486e 100644 --- a/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --from The height to start at diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx index e176564435..effc3dfe6b 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Possible values: - headers: The headers stage within the pipeline diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx index 99d18f48ea..9843a02256 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx @@ -145,6 +145,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx index 13a1599bd7..3130a06819 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --metrics Enable Prometheus metrics. diff --git a/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx b/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx index 3e380975e5..496417aeb4 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx @@ -143,6 +143,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --offline If this is enabled, then all stages except headers, bodies, and sender recovery will be unwound diff --git a/docs/vocs/docs/pages/cli/reth/db.mdx b/docs/vocs/docs/pages/cli/reth/db.mdx index ef1793696b..5fd0ef4199 100644 --- a/docs/vocs/docs/pages/cli/reth/db.mdx +++ b/docs/vocs/docs/pages/cli/reth/db.mdx @@ -154,6 +154,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/reth/download.mdx b/docs/vocs/docs/pages/cli/reth/download.mdx index 8c8b047d94..dfc81c0bf5 100644 --- a/docs/vocs/docs/pages/cli/reth/download.mdx +++ b/docs/vocs/docs/pages/cli/reth/download.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + -u, --url Specify a snapshot URL or let the command propose a default one. diff --git a/docs/vocs/docs/pages/cli/reth/export-era.mdx b/docs/vocs/docs/pages/cli/reth/export-era.mdx index 4dcbbd18aa..64bc803824 100644 --- a/docs/vocs/docs/pages/cli/reth/export-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/export-era.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --first-block-number Optional first block number to export from the db. It is by default 0. diff --git a/docs/vocs/docs/pages/cli/reth/import-era.mdx b/docs/vocs/docs/pages/cli/reth/import-era.mdx index fb7a3d394c..3821881662 100644 --- a/docs/vocs/docs/pages/cli/reth/import-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/import-era.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --path The path to a directory for import. diff --git a/docs/vocs/docs/pages/cli/reth/import.mdx b/docs/vocs/docs/pages/cli/reth/import.mdx index c3482e2a46..ad81cc3d18 100644 --- a/docs/vocs/docs/pages/cli/reth/import.mdx +++ b/docs/vocs/docs/pages/cli/reth/import.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --no-state Disables stages that require state. diff --git a/docs/vocs/docs/pages/cli/reth/init-state.mdx b/docs/vocs/docs/pages/cli/reth/init-state.mdx index 16aa7f6148..b1d05e4b5f 100644 --- a/docs/vocs/docs/pages/cli/reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/reth/init-state.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --without-evm Specifies whether to initialize the state without relying on EVM historical data. diff --git a/docs/vocs/docs/pages/cli/reth/init.mdx b/docs/vocs/docs/pages/cli/reth/init.mdx index d2da76d31c..b6c5ee0539 100644 --- a/docs/vocs/docs/pages/cli/reth/init.mdx +++ b/docs/vocs/docs/pages/cli/reth/init.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/reth/node.mdx b/docs/vocs/docs/pages/cli/reth/node.mdx index 3766d7ed9d..b076f3eee4 100644 --- a/docs/vocs/docs/pages/cli/reth/node.mdx +++ b/docs/vocs/docs/pages/cli/reth/node.mdx @@ -904,18 +904,27 @@ RocksDB: This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. --rocksdb.tx-hash - Route tx hash -> number table to `RocksDB` instead of MDBX + Route tx hash -> number table to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] --rocksdb.storages-history - Route storages history tables to `RocksDB` instead of MDBX + Route storages history tables to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] --rocksdb.account-history - Route account history tables to `RocksDB` instead of MDBX + Route account history tables to `RocksDB` instead of MDBX. + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] [possible values: true, false] Engine: diff --git a/docs/vocs/docs/pages/cli/reth/prune.mdx b/docs/vocs/docs/pages/cli/reth/prune.mdx index c2d1e83009..8e33c02504 100644 --- a/docs/vocs/docs/pages/cli/reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/reth/prune.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/reth/re-execute.mdx b/docs/vocs/docs/pages/cli/reth/re-execute.mdx index c4a254ed51..aa0615070c 100644 --- a/docs/vocs/docs/pages/cli/reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/reth/re-execute.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --from The height to start at diff --git a/docs/vocs/docs/pages/cli/reth/stage/drop.mdx b/docs/vocs/docs/pages/cli/reth/stage/drop.mdx index 26178aad35..15318efa4c 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/drop.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Possible values: - headers: The headers stage within the pipeline diff --git a/docs/vocs/docs/pages/cli/reth/stage/dump.mdx b/docs/vocs/docs/pages/cli/reth/stage/dump.mdx index 5750798c6f..f78ed561f9 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump.mdx @@ -145,6 +145,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + Logging: --log.stdout.format The format to use for logs written to stdout diff --git a/docs/vocs/docs/pages/cli/reth/stage/run.mdx b/docs/vocs/docs/pages/cli/reth/stage/run.mdx index 1213a27264..8752c5e526 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/run.mdx @@ -138,6 +138,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --metrics Enable Prometheus metrics. diff --git a/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx b/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx index ed16cfb48f..8c4f9ef9f7 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx @@ -143,6 +143,36 @@ Static Files: [default: false] [possible values: true, false] +RocksDB: + --rocksdb.all + Route all supported tables to `RocksDB` instead of MDBX. + + This enables `RocksDB` for `tx-hash`, `storages-history`, and `account-history` tables. Cannot be combined with individual flags set to false. + + --rocksdb.tx-hash + Route tx hash -> number table to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.storages-history + Route storages history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + + --rocksdb.account-history + Route account history tables to `RocksDB` instead of MDBX. + + This is a genesis-initialization-only flag: changing it after genesis requires a re-sync. Defaults to `true` when the `edge` feature is enabled, `false` otherwise. + + [default: false] + [possible values: true, false] + --offline If this is enabled, then all stages except headers, bodies, and sender recovery will be unwound