Added Spec Restrictions on Optimistic Block Import

This commit is contained in:
Mark Mackey
2022-01-27 18:48:28 -06:00
parent 696de58141
commit 3df6da84ed
5 changed files with 84 additions and 9 deletions

View File

@@ -52,6 +52,12 @@ pub fn get_eth2_network_config(cli_args: &ArgMatches) -> Result<Eth2NetworkConfi
.terminal_block_hash_activation_epoch = epoch;
}
if let Some(slots) = parse_optional(cli_args, "safe-slots-to-import-optimistically")? {
eth2_network_config
.config
.safe_slots_to_import_optimistically = slots;
}
Ok(eth2_network_config)
}