mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-18 20:32:45 +00:00
Merge remote-tracking branch 'origin/unstable' into tree-states
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")
|
||||
@@ -727,7 +728,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||
Arg::with_name("max-skip-slots")
|
||||
.long("max-skip-slots")
|
||||
.help(
|
||||
"Refuse to skip more than this many slots when processing a block or attestation. \
|
||||
"Refuse to skip more than this many slots when processing an attestation. \
|
||||
This prevents nodes on minority forks from wasting our time and disk space, \
|
||||
but could also cause unnecessary consensus failures, so is disabled by default."
|
||||
)
|
||||
@@ -1159,6 +1160,19 @@ 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)
|
||||
)
|
||||
.arg(
|
||||
Arg::with_name("unsafe-and-dangerous-mode")
|
||||
.long("unsafe-and-dangerous-mode")
|
||||
|
||||
Reference in New Issue
Block a user