mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
Add flag to disable attestation APIs
This commit is contained in:
@@ -553,6 +553,14 @@ pub fn cli_app() -> Command {
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("disable-attesting")
|
||||
.long("disable-attesting")
|
||||
.help("Turn off attestation related APIs so that we have some hope of producing \
|
||||
blocks")
|
||||
.action(ArgAction::Set)
|
||||
.display_order(0)
|
||||
)
|
||||
.arg(
|
||||
Arg::new("http-sse-capacity-multiplier")
|
||||
.long("http-sse-capacity-multiplier")
|
||||
|
||||
@@ -191,6 +191,10 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.chain.enable_light_client_server = false;
|
||||
}
|
||||
|
||||
if cli_args.get_flag("disable-attesting") {
|
||||
client_config.chain.disable_attesting = true;
|
||||
}
|
||||
|
||||
if let Some(cache_size) = clap_utils::parse_optional(cli_args, "shuffling-cache-size")? {
|
||||
client_config.chain.shuffling_cache_size = cache_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user