Use new simulator from unstable

This commit is contained in:
Mac L
2024-04-26 13:07:22 +10:00
parent 4c5dd6716f
commit 85443e8b19
6 changed files with 1 additions and 134 deletions

View File

@@ -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)