mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
fix change flag name end_after_checks to continue_after_checks (#1573)
## Issue Addressed Resolve #1387 ## Proposed Changes Replace flag name **end_after_checks** to ** continue_after_checks** Change condition to simple (remove **!**, It's no change logic.) ## Additional Info Operation check - [x] subcommand `eth1-sim` with ganach-cli - [x] `./simulator eth1-sim` -> test is completes - [x] `./simulator eth1-sim --continue_after_checks` -> test is never completes - [x] `./simulator eth1-sim -c` -> test is never completes - [x] `./simulator eth1-sim -c true` -> error: Found (clap) - [x] `./simulator eth1-sim -c false` -> error: Found (clap) - [x] subcommand `no-eth1-sim` - [x] `./simulator no-eth1-sim` -> test is completes - [x] `./simulator no-eth1-sim --continue_after_checks` -> test is never completes - [x] `./simulator no-eth1-sim -c` -> test is never completes - [x] `./simulator no-eth1-sim -c true` -> error: Found (clap) - [x] `./simulator no-eth1-sim -c false` -> error: Found (clap)
This commit is contained in:
@@ -17,12 +17,12 @@ pub fn run_eth1_sim(matches: &ArgMatches) -> Result<(), String> {
|
||||
.expect("missing validators_per_node default");
|
||||
let speed_up_factor =
|
||||
value_t!(matches, "speed_up_factor", u64).expect("missing speed_up_factor default");
|
||||
let end_after_checks = !matches.is_present("end_after_checks");
|
||||
let continue_after_checks = matches.is_present("continue_after_checks");
|
||||
|
||||
println!("Beacon Chain Simulator:");
|
||||
println!(" nodes:{}", node_count);
|
||||
println!(" validators_per_node:{}", validators_per_node);
|
||||
println!(" end_after_checks:{}", end_after_checks);
|
||||
println!(" continue_after_checks:{}", continue_after_checks);
|
||||
|
||||
// Generate the directories and keystores required for the validator clients.
|
||||
let validator_files = (0..node_count)
|
||||
@@ -174,9 +174,9 @@ pub fn run_eth1_sim(matches: &ArgMatches) -> Result<(), String> {
|
||||
onboarding?;
|
||||
|
||||
// The `final_future` either completes immediately or never completes, depending on the value
|
||||
// of `end_after_checks`.
|
||||
// of `continue_after_checks`.
|
||||
|
||||
if !end_after_checks {
|
||||
if continue_after_checks {
|
||||
future::pending::<()>().await;
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user