feat(optimism): enable state root task by default (#14977)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Alexey Shekhirin
2025-03-12 11:56:31 +01:00
committed by GitHub
parent 523dcfd80a
commit 1d7028bc35
2 changed files with 1 additions and 10 deletions

View File

@@ -23,10 +23,6 @@ pub struct EngineArgs {
#[arg(long = "engine.legacy-state-root", default_value = "false")]
pub legacy_state_root_task_enabled: bool,
/// Enable state root task
#[arg(long = "engine.state-root-task", default_value = "false", hide = true)]
pub state_root_task_enabled: bool,
/// Enable cross-block caching and parallel prewarming
#[arg(long = "engine.caching-and-prewarming")]
pub caching_and_prewarming_enabled: bool,
@@ -47,7 +43,6 @@ impl Default for EngineArgs {
persistence_threshold: DEFAULT_PERSISTENCE_THRESHOLD,
memory_block_buffer_target: DEFAULT_MEMORY_BLOCK_BUFFER_TARGET,
legacy_state_root_task_enabled: false,
state_root_task_enabled: false,
state_root_task_compare_updates: false,
caching_and_prewarming_enabled: false,
cross_block_cache_size: DEFAULT_CROSS_BLOCK_CACHE_SIZE_MB,

View File

@@ -154,11 +154,7 @@ where
let _ = install_prometheus_recorder();
match self.command {
Commands::Node(mut command) => {
// TODO: remove when we're ready to roll out State Root Task on OP-Reth
if !command.engine.state_root_task_enabled {
command.engine.legacy_state_root_task_enabled = true;
}
Commands::Node(command) => {
runner.run_command_until_exit(|ctx| command.execute(ctx, launcher))
}
Commands::Init(command) => {