Add builder header timeout flag (#5857)

* fix bitvector test random impl

* add a new flag that allows for configuring the timeout for get builder header api calls

* make cli

* add upper limit check, changes based on feedback

* update cli

* capitalization

* cli fix
This commit is contained in:
Eitan Seri-Levi
2024-05-31 05:35:57 +02:00
committed by GitHub
parent bbe9242811
commit fbc230e118
7 changed files with 80 additions and 8 deletions

View File

@@ -329,6 +329,10 @@ pub fn get_config<E: EthSpec>(
el_config.builder_user_agent =
clap_utils::parse_optional(cli_args, "builder-user-agent")?;
el_config.builder_header_timeout =
clap_utils::parse_optional(cli_args, "builder-header-timeout")?
.map(Duration::from_millis);
}
if parse_flag(cli_args, "builder-profit-threshold") {