Thread through ChainSpec

This commit is contained in:
Michael Sproul
2025-01-06 17:05:30 +11:00
parent 063b79c16a
commit e4bfe71cd1
11 changed files with 69 additions and 34 deletions

View File

@@ -7,6 +7,7 @@ use environment::RuntimeContext;
use eth2::{reqwest::ClientBuilder, BeaconNodeHttpClient, Timeouts};
use sensitive_url::SensitiveUrl;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};
use tempfile::{Builder as TempBuilder, TempDir};
@@ -248,8 +249,14 @@ impl<E: EthSpec> LocalExecutionNode<E> {
if let Err(e) = std::fs::write(jwt_file_path, config.jwt_key.hex_string()) {
panic!("Failed to write jwt file {}", e);
}
let spec = Arc::new(E::default_spec());
Self {
server: MockServer::new_with_config(&context.executor.handle().unwrap(), config, None),
server: MockServer::new_with_config(
&context.executor.handle().unwrap(),
config,
spec,
None,
),
datadir,
}
}