Skip to content

Commit 4d7529e

Browse files
authored
feat: allow for millis to be used when defining paylaod deadline (#227)
* allow for millis to be used when defining paylaod deadline * chore: align cli docs * lint: remove newline
1 parent a37dcd5 commit 4d7529e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book/cli/reth/node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,10 @@ Builder:
565565
566566
[default: 1]
567567
568-
--builder.deadline <SECONDS>
568+
--builder.deadline <DEADLINE>
569569
The deadline for when the payload builder job should resolve
570570
571-
[default: 12]
571+
[default: 12s]
572572
573573
--builder.max-tasks <MAX_PAYLOAD_TASKS>
574574
Maximum number of tasks to spawn for building a payload

crates/node/core/src/args/payload_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use clap::{
55
builder::{RangedU64ValueParser, TypedValueParser},
66
Arg, Args, Command,
77
};
8-
use reth_cli_util::{parse_duration_from_secs, parse_duration_from_secs_or_ms};
8+
use reth_cli_util::parse_duration_from_secs_or_ms;
99
use std::{borrow::Cow, ffi::OsStr, time::Duration};
1010

1111
/// Parameters for configuring the Payload Builder
@@ -29,7 +29,7 @@ pub struct PayloadBuilderArgs {
2929
pub interval: Duration,
3030

3131
/// The deadline for when the payload builder job should resolve.
32-
#[arg(long = "builder.deadline", value_parser = parse_duration_from_secs, default_value = "12", value_name = "SECONDS")]
32+
#[arg(long = "builder.deadline", value_parser = parse_duration_from_secs_or_ms, default_value = "12s", value_name = "DEADLINE")]
3333
pub deadline: Duration,
3434

3535
/// Maximum number of tasks to spawn for building a payload.

0 commit comments

Comments
 (0)