Skip to content
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

chore(cli): engine cli options conflict with legacy #11993

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

rkrasiuk
Copy link
Member

Description

Change engine CLI options to no longer require --engine.experimental (as it is default now) and conflict with --engine.legacy.

@rkrasiuk rkrasiuk added C-debt Refactor of code section that is hard to understand or maintain A-cli Related to the reth CLI labels Oct 23, 2024
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs sanity test

Comment on lines +36 to +40
#[arg(long = "engine.persistence-threshold", conflicts_with = "legacy", 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", requires = "experimental", default_value_t = DEFAULT_MEMORY_BLOCK_BUFFER_TARGET)]
#[arg(long = "engine.memory-block-buffer-target", conflicts_with = "legacy", default_value_t = DEFAULT_MEMORY_BLOCK_BUFFER_TARGET)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced this works as expected because the name of legacy is engine.legacy

Copy link
Member Author

@rkrasiuk rkrasiuk Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's just how clap vars are referenced 🤷‍♂️, feel free to try it yourself. a test here would be pedantic

@rkrasiuk rkrasiuk requested a review from mattsse October 23, 2024 15:56
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rkrasiuk rkrasiuk added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit 4093532 Oct 24, 2024
39 checks passed
@rkrasiuk rkrasiuk deleted the rkrasiuk/engine-cli-conflicts-legacy branch October 24, 2024 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the reth CLI C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants