-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: integrate EngineArgs into NodeCommand #13748
base: main
Are you sure you want to change the base?
Conversation
Hi @mattsse , I have a question. The values |
we can move this constants to node-core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, this is pretty good already
let engine_tree_config = TreeConfig::default() | ||
.with_persistence_threshold(builder.config.engine.persistence_threshold) | ||
.with_memory_block_buffer_target(builder.config.engine.memory_block_buffer_target) | ||
.with_state_root_task(builder.config.engine.state_root_task_enabled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can probably make this a function of builder or config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, specifically it'd be nice if in the Optimism config we could instantiate TreeConfig
from RollupArgs
somehow, so that we don't need this: https://github.com/paradigmxyz/reth/blob/main/crates/optimism/bin/src/main.rs#L26-L41
Ideally this https://github.com/paradigmxyz/reth/blob/main/crates/optimism/bin/src/main.rs#L26C12-L39 becomes builder.node(OpNode::new(rollup_args))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review
Closes #13742.