mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 19:02:42 +00:00
Thread through ChainSpec
This commit is contained in:
@@ -9,6 +9,7 @@ use execution_layer::{
|
||||
};
|
||||
use std::net::Ipv4Addr;
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Arc;
|
||||
use types::*;
|
||||
|
||||
pub fn run<E: EthSpec>(mut env: Environment<E>, matches: &ArgMatches) -> Result<(), String> {
|
||||
@@ -21,7 +22,7 @@ pub fn run<E: EthSpec>(mut env: Environment<E>, matches: &ArgMatches) -> Result<
|
||||
let prague_time = parse_optional(matches, "prague-time")?;
|
||||
|
||||
let handle = env.core_context().executor.handle().unwrap();
|
||||
let spec = &E::default_spec();
|
||||
let spec = Arc::new(E::default_spec());
|
||||
let jwt_key = JwtKey::from_slice(&DEFAULT_JWT_SECRET).unwrap();
|
||||
std::fs::write(jwt_path, hex::encode(DEFAULT_JWT_SECRET)).unwrap();
|
||||
|
||||
@@ -39,7 +40,7 @@ pub fn run<E: EthSpec>(mut env: Environment<E>, matches: &ArgMatches) -> Result<
|
||||
prague_time,
|
||||
};
|
||||
let kzg = None;
|
||||
let server: MockServer<E> = MockServer::new_with_config(&handle, config, kzg);
|
||||
let server: MockServer<E> = MockServer::new_with_config(&handle, config, spec, kzg);
|
||||
|
||||
if all_payloads_valid {
|
||||
eprintln!(
|
||||
|
||||
Reference in New Issue
Block a user