Fix simulator

This commit is contained in:
Mac L
2023-07-21 17:49:52 +10:00
parent 61bc700fdf
commit 129568565e
4 changed files with 94 additions and 46 deletions

View File

@@ -30,6 +30,14 @@ 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 = 99.0;
pub type E = MinimalEthSpec;
fn main() {