mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Add a flag to disable getBlobs (#7853)
N/A Add a flag to disable get blobs. I configured the flag to disable it regardless of version because its most likely something we use for testing anyway.
This commit is contained in:
@@ -909,6 +909,14 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-get-blobs")
|
||||
.long("disable-get-blobs")
|
||||
.help("Disables the getBlobs optimisation to fetch blobs from the EL mempool")
|
||||
.action(ArgAction::SetTrue)
|
||||
.help_heading(FLAG_HEADER)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("builder-header-timeout")
|
||||
.long("builder-header-timeout")
|
||||
|
||||
@@ -182,6 +182,10 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.chain.enable_light_client_server = false;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("disable-get-blobs") {
|
||||
client_config.chain.disable_get_blobs = true;
|
||||
}
|
||||
|
||||
if let Some(sync_tolerance_epochs) =
|
||||
clap_utils::parse_optional(cli_args, "sync-tolerance-epochs")?
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user