Fix builder API headers (#7009)

Resolves https://github.com/sigp/lighthouse/issues/7000


  Set the accept header on builder to the correct value when requesting ssz.

This PR also adds a flag to disable ssz over the builder api altogether. In the case that builders/relays have an ssz bug, we can react quickly by asking clients to restart their nodes with the `--disable-ssz-builder` flag to force json. I'm not fully convinced if this is useful so open to removing it or opening another PR for it.

Testing this currently.
This commit is contained in:
Pawan Dhananjay
2025-02-23 19:39:13 -08:00
committed by GitHub
parent b3b6aea1c5
commit 522b3cbaab
7 changed files with 149 additions and 27 deletions

View File

@@ -346,6 +346,8 @@ pub fn get_config<E: EthSpec>(
el_config.builder_header_timeout =
clap_utils::parse_optional(cli_args, "builder-header-timeout")?
.map(Duration::from_millis);
el_config.disable_builder_ssz_requests = cli_args.get_flag("builder-disable-ssz");
}
// Set config values from parse values.