mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Merge branch 'remove-into-gossip-verified-block' of https://github.com/realbigsean/lighthouse into merge-unstable-deneb-june-6th
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use clap::{App, Arg};
|
||||
use strum::VariantNames;
|
||||
use types::ProgressiveBalancesMode;
|
||||
|
||||
pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
App::new("beacon_node")
|
||||
@@ -1159,4 +1160,17 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
developers. This directory is not pruned, users should be careful to avoid \
|
||||
filling up their disks.")
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("progressive-balances")
|
||||
.long("progressive-balances")
|
||||
.value_name("MODE")
|
||||
.help("Options to enable or disable the progressive balances cache for \
|
||||
unrealized FFG progression calculation. The default `checked` mode compares \
|
||||
the progressive balances from the cache against results from the existing \
|
||||
method. If there is a mismatch, it falls back to the existing method. The \
|
||||
optimized mode (`fast`) is faster but is still experimental, and is \
|
||||
not recommended for mainnet usage at this time.")
|
||||
.takes_value(true)
|
||||
.possible_values(ProgressiveBalancesMode::VARIANTS)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -837,6 +837,12 @@ pub fn get_config<E: EthSpec>(
|
||||
client_config.network.invalid_block_storage = Some(path);
|
||||
}
|
||||
|
||||
if let Some(progressive_balances_mode) =
|
||||
clap_utils::parse_optional(cli_args, "progressive-balances")?
|
||||
{
|
||||
client_config.chain.progressive_balances_mode = progressive_balances_mode;
|
||||
}
|
||||
|
||||
Ok(client_config)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user