mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Use new simulator from unstable
This commit is contained in:
@@ -26,14 +26,6 @@ use env_logger::{Builder, Env};
|
||||
use local_network::LocalNetwork;
|
||||
use types::MinimalEthSpec;
|
||||
|
||||
// Since simulator tests are non-deterministic and there is a non-zero chance of missed
|
||||
// attestations, define an acceptable network-wide attestation performance.
|
||||
//
|
||||
// This has potential to block CI so it should be set conservatively enough that spurious failures
|
||||
// don't become very common, but not so conservatively that regressions to the fallback mechanism
|
||||
// cannot be detected.
|
||||
pub(crate) const ACCEPTABLE_FALLBACK_ATTESTATION_HIT_PERCENTAGE: f64 = 95.0;
|
||||
|
||||
pub type E = MinimalEthSpec;
|
||||
|
||||
fn main() {
|
||||
@@ -56,13 +48,6 @@ fn main() {
|
||||
std::process::exit(1)
|
||||
}
|
||||
},
|
||||
("fallback-sim", Some(matches)) => match fallback_sim::run_fallback_sim(matches) {
|
||||
Ok(()) => println!("Simulation exited successfully"),
|
||||
Err(e) => {
|
||||
eprintln!("Simulation exited with an error: {}", e);
|
||||
std::process::exit(1)
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
eprintln!("Invalid subcommand. Use --help to see available options");
|
||||
std::process::exit(1)
|
||||
|
||||
Reference in New Issue
Block a user