Rework Validator Client fallback mechanism

This commit is contained in:
Mac L
2023-06-13 16:43:38 +10:00
parent 687c58fde0
commit 71ee4cf2d8
17 changed files with 1303 additions and 175 deletions

View File

@@ -119,7 +119,45 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.takes_value(true)
.default_value("all")
.possible_values(&["one-node", "two-nodes", "mixed", "all"])
.help("Sync verification strategy to run."),
.help("Sync verification strategy to run."))
)
.subcommand(
SubCommand::with_name("fallback-sim")
.about("Run the fallback simulation")
.arg(Arg::with_name("vc_count")
.short("c")
.long("vc-count")
.takes_value(true)
.default_value("4")
.help("Number of validator clients"))
.arg(Arg::with_name("bns_per_vc")
.short("b")
.long("bns_per_vc")
.takes_value(true)
.default_value("2")
.help("Number of beacon nodes to connect to each validator client"))
.arg(Arg::with_name("validators_per_vc")
.short("v")
.long("validators_per_vc")
.takes_value(true)
.default_value("20")
.help("Number of validators per client"))
.arg(Arg::with_name("speed_up_factor")
.short("s")
.long("speed_up_factor")
.takes_value(true)
.default_value("3")
.help("Speed up factor. Please use a divisor of 12."))
.arg(Arg::with_name("post-merge")
.short("m")
.long("post-merge")
.takes_value(false)
.help("Simulate the merge transition"))
.arg(Arg::with_name("continue_after_checks")
.short("c")
.long("continue_after_checks")
.takes_value(false)
.help("Continue after checks (default false)")
),
)
}