fix: apply legacy cleanup to opnode (#13775)

This commit is contained in:
Matthias Seitz
2025-01-11 19:59:13 +01:00
committed by GitHub
parent 8e7768db2a
commit cc84f83b6c
2 changed files with 7 additions and 16 deletions

View File

@ -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,
}
}
}