mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user