mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: apply legacy cleanup to opnode (#13775)
This commit is contained in:
@ -2,10 +2,6 @@
|
||||
|
||||
//! clap [Args](clap::Args) for optimism rollup configuration
|
||||
|
||||
use reth_node_builder::engine_tree_config::{
|
||||
DEFAULT_MEMORY_BLOCK_BUFFER_TARGET, DEFAULT_PERSISTENCE_THRESHOLD,
|
||||
};
|
||||
|
||||
/// Parameters for rollup configuration
|
||||
#[derive(Debug, Clone, PartialEq, Eq, clap::Args)]
|
||||
#[command(next_help_heading = "Rollup")]
|
||||
@ -37,16 +33,9 @@ pub struct RollupArgs {
|
||||
/// enables discovery v4 if provided
|
||||
#[arg(long = "rollup.discovery.v4", default_value = "false")]
|
||||
pub discovery_v4: bool,
|
||||
|
||||
/// Configure persistence threshold for engine experimental.
|
||||
#[arg(long = "engine.persistence-threshold", default_value_t = DEFAULT_PERSISTENCE_THRESHOLD)]
|
||||
pub persistence_threshold: u64,
|
||||
|
||||
/// Configure the target number of blocks to keep in memory.
|
||||
#[arg(long = "engine.memory-block-buffer-target", default_value_t = DEFAULT_MEMORY_BLOCK_BUFFER_TARGET)]
|
||||
pub memory_block_buffer_target: u64,
|
||||
}
|
||||
|
||||
#[allow(clippy::derivable_impls)]
|
||||
impl Default for RollupArgs {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
@ -55,8 +44,6 @@ impl Default for RollupArgs {
|
||||
enable_genesis_walkback: false,
|
||||
compute_pending_block: false,
|
||||
discovery_v4: false,
|
||||
persistence_threshold: DEFAULT_PERSISTENCE_THRESHOLD,
|
||||
memory_block_buffer_target: DEFAULT_MEMORY_BLOCK_BUFFER_TARGET,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user