-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Add cli arg for pool lifetime #14273
Conversation
crates/node/core/src/args/txpool.rs
Outdated
|
||
/// Duration after which stale external transactions are removed. | ||
#[arg(long = "builder.interval", value_parser = parse_duration_from_secs_or_ms, default_value = "300", value_name = "DURATION")] | ||
pub stale_tx_timeout: Duration, |
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.
this should be called txpool.lifetime:
and we can use default_value_t here I think
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.
default_value_t
requires that Duration
implements the trait ToString
which it doesn't
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.
Similar to
#[arg(long = "builder.interval", value_parser = parse_duration_from_secs_or_ms, default_value = "1", value_name = "DURATION")] |
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.
right, hence the value_parse fn
8021da5
to
55f32aa
Compare
55f32aa
to
a9f66df
Compare
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.
lgtm
fyi @Cyber-Mitch I integrated some of your changes here so you get listed as author |
oh okay cool |
Co-authored-by: Reentrancy <[email protected]> Co-authored-by: Reentrancy <[email protected]> Co-authored-by: Matthias Seitz <[email protected]>
Ref #14262