diff --git a/crates/node/core/Cargo.toml b/crates/node/core/Cargo.toml index 3ed981297e..2be74b1761 100644 --- a/crates/node/core/Cargo.toml +++ b/crates/node/core/Cargo.toml @@ -92,7 +92,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 = [] +edge = ["reth-provider/edge"] [build-dependencies] vergen = { workspace = true, features = ["build", "cargo", "emit_and_set"] } diff --git a/crates/node/core/src/args/static_files.rs b/crates/node/core/src/args/static_files.rs index 44116dd84b..aa52164f2f 100644 --- a/crates/node/core/src/args/static_files.rs +++ b/crates/node/core/src/args/static_files.rs @@ -9,8 +9,16 @@ use reth_provider::StorageSettings; /// 10000 blocks per static file allows us to prune all history every 10k blocks. pub const MINIMAL_BLOCKS_PER_FILE: u64 = 10000; +/// Default value for static file storage 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_static_file_flag() -> bool { + cfg!(feature = "edge") +} + /// Parameters for static files configuration -#[derive(Debug, Args, PartialEq, Eq, Default, Clone, Copy)] +#[derive(Debug, Args, PartialEq, Eq, Clone, Copy)] #[command(next_help_heading = "Static Files")] pub struct StaticFilesArgs { /// Number of blocks per file for the headers segment. @@ -39,7 +47,7 @@ pub struct StaticFilesArgs { /// /// Note: This setting can only be configured at genesis initialization. Once /// the node has been initialized, changing this flag requires re-syncing from scratch. - #[arg(long = "static-files.receipts")] + #[arg(long = "static-files.receipts", default_value_t = default_static_file_flag(), action = clap::ArgAction::Set)] pub receipts: bool, /// Store transaction senders in static files instead of the database. @@ -49,7 +57,7 @@ pub struct StaticFilesArgs { /// /// Note: This setting can only be configured at genesis initialization. Once /// the node has been initialized, changing this flag requires re-syncing from scratch. - #[arg(long = "static-files.transaction-senders")] + #[arg(long = "static-files.transaction-senders", default_value_t = default_static_file_flag(), action = clap::ArgAction::Set)] pub transaction_senders: bool, /// Store account changesets in static files. @@ -59,7 +67,7 @@ pub struct StaticFilesArgs { /// /// Note: This setting can only be configured at genesis initialization. Once /// the node has been initialized, changing this flag requires re-syncing from scratch. - #[arg(long = "static-files.account-change-sets")] + #[arg(long = "static-files.account-change-sets", default_value_t = default_static_file_flag(), action = clap::ArgAction::Set)] pub account_changesets: bool, } @@ -97,9 +105,28 @@ impl StaticFilesArgs { /// Converts the static files arguments into [`StorageSettings`]. pub const fn to_settings(&self) -> StorageSettings { - StorageSettings::legacy() - .with_receipts_in_static_files(self.receipts) + #[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 { + fn default() -> Self { + Self { + blocks_per_file_headers: None, + blocks_per_file_transactions: None, + blocks_per_file_receipts: None, + blocks_per_file_transaction_senders: None, + blocks_per_file_account_change_sets: None, + receipts: default_static_file_flag(), + transaction_senders: default_static_file_flag(), + account_changesets: default_static_file_flag(), + } + } +} diff --git a/crates/storage/provider/Cargo.toml b/crates/storage/provider/Cargo.toml index 0199b6d2fc..2aa30ab1b9 100644 --- a/crates/storage/provider/Cargo.toml +++ b/crates/storage/provider/Cargo.toml @@ -85,6 +85,7 @@ rand.workspace = true tokio = { workspace = true, features = ["sync", "macros", "rt-multi-thread"] } [features] +edge = ["reth-storage-api/edge"] rocksdb = ["dep:rocksdb"] test-utils = [ "reth-db/test-utils", diff --git a/crates/storage/storage-api/Cargo.toml b/crates/storage/storage-api/Cargo.toml index 83cbbbd714..9076dc64b5 100644 --- a/crates/storage/storage-api/Cargo.toml +++ b/crates/storage/storage-api/Cargo.toml @@ -36,6 +36,7 @@ serde_json = { workspace = true, optional = true } [features] default = ["std"] +edge = ["reth-db-api/edge"] std = [ "reth-chainspec/std", "alloy-consensus/std", diff --git a/docs/vocs/docs/pages/cli/op-reth/db.mdx b/docs/vocs/docs/pages/cli/op-reth/db.mdx index c2d7b89b03..d6c8ef5669 100644 --- a/docs/vocs/docs/pages/cli/op-reth/db.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/db.mdx @@ -124,27 +124,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 42398a7515..891439b4f6 100644 --- a/docs/vocs/docs/pages/cli/op-reth/import-op.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/import-op.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 75b260f7e0..cabcf3b040 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 @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 3f1b0bff2e..429c4fe1f0 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init-state.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 3f7c5ab547..1094918f33 100644 --- a/docs/vocs/docs/pages/cli/op-reth/init.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/init.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 f245315040..25e248076c 100644 --- a/docs/vocs/docs/pages/cli/op-reth/node.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/node.mdx @@ -1003,27 +1003,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [default: false] + [possible values: true, false] + Rollup: --rollup.sequencer Endpoint for the sequencer mempool (can be both HTTP and WS) diff --git a/docs/vocs/docs/pages/cli/op-reth/prune.mdx b/docs/vocs/docs/pages/cli/op-reth/prune.mdx index 2df4b66eb9..953e77d6ca 100644 --- a/docs/vocs/docs/pages/cli/op-reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/prune.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 247f8ead68..8e40a32b9e 100644 --- a/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/re-execute.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 25df549b93..e176564435 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/drop.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 3107256bbe..99d18f48ea 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/dump.mdx @@ -115,27 +115,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 b5c5af7729..13a1599bd7 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/run.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 426d481f6e..3e380975e5 100644 --- a/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/op-reth/stage/unwind.mdx @@ -113,27 +113,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 d9e12bd747..4fda4538d1 100644 --- a/docs/vocs/docs/pages/cli/reth/db.mdx +++ b/docs/vocs/docs/pages/cli/reth/db.mdx @@ -124,27 +124,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 2f7fd05842..8c8b047d94 100644 --- a/docs/vocs/docs/pages/cli/reth/download.mdx +++ b/docs/vocs/docs/pages/cli/reth/download.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 4eab7b84a0..4dcbbd18aa 100644 --- a/docs/vocs/docs/pages/cli/reth/export-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/export-era.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 97386ec857..fb7a3d394c 100644 --- a/docs/vocs/docs/pages/cli/reth/import-era.mdx +++ b/docs/vocs/docs/pages/cli/reth/import-era.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 10eed08490..c3482e2a46 100644 --- a/docs/vocs/docs/pages/cli/reth/import.mdx +++ b/docs/vocs/docs/pages/cli/reth/import.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 eaab28160e..16aa7f6148 100644 --- a/docs/vocs/docs/pages/cli/reth/init-state.mdx +++ b/docs/vocs/docs/pages/cli/reth/init-state.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 586f0d4a44..d2da76d31c 100644 --- a/docs/vocs/docs/pages/cli/reth/init.mdx +++ b/docs/vocs/docs/pages/cli/reth/init.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 c052076fc8..9eb5b2ddbf 100644 --- a/docs/vocs/docs/pages/cli/reth/node.mdx +++ b/docs/vocs/docs/pages/cli/reth/node.mdx @@ -1003,27 +1003,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [default: false] + [possible values: true, false] + Ress: --ress.enable Enable support for `ress` subprotocol diff --git a/docs/vocs/docs/pages/cli/reth/prune.mdx b/docs/vocs/docs/pages/cli/reth/prune.mdx index 07cde6cd02..c2d1e83009 100644 --- a/docs/vocs/docs/pages/cli/reth/prune.mdx +++ b/docs/vocs/docs/pages/cli/reth/prune.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 238f07c565..c4a254ed51 100644 --- a/docs/vocs/docs/pages/cli/reth/re-execute.mdx +++ b/docs/vocs/docs/pages/cli/reth/re-execute.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 8e8135c585..26178aad35 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/drop.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/drop.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 b162958fd6..5750798c6f 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/dump.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/dump.mdx @@ -115,27 +115,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 4ad13bc3fc..1213a27264 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/run.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/run.mdx @@ -108,27 +108,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [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 ecb0f3f82d..ed16cfb48f 100644 --- a/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx +++ b/docs/vocs/docs/pages/cli/reth/stage/unwind.mdx @@ -113,27 +113,36 @@ Static Files: --static-files.blocks-per-file.account-change-sets Number of blocks per file for the account changesets segment - --static-files.receipts + --static-files.receipts Store receipts in static files instead of the database. When enabled, receipts will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.transaction-senders + [default: false] + [possible values: true, false] + + --static-files.transaction-senders Store transaction senders in static files instead of the database. When enabled, transaction senders will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. - --static-files.account-change-sets + [default: false] + [possible values: true, false] + + --static-files.account-change-sets Store account changesets in static files. When enabled, account changesets will be written to static files on disk instead of the database. Note: This setting can only be configured at genesis initialization. Once the node has been initialized, changing this flag requires re-syncing from scratch. + [default: false] + [possible values: true, false] + --offline If this is enabled, then all stages except headers, bodies, and sender recovery will be unwound