Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions beacon_node/beacon_chain/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use execution_layer::{
test_utils::{
ExecutionBlockGenerator, ExecutionLayerRuntime, MockExecutionLayer, DEFAULT_TERMINAL_BLOCK,
},
ExecutionLayer,
ExecutionLayer, DEFAULT_JWT_FILE,
};
use futures::channel::mpsc::Receiver;
pub use genesis::{interop_genesis_state, DEFAULT_ETH1_BLOCK_HASH};
Expand All @@ -37,6 +37,7 @@ use state_processing::{
};
use std::borrow::Cow;
use std::collections::{HashMap, HashSet};
use std::path::PathBuf;
use std::str::FromStr;
use std::sync::Arc;
use std::time::Duration;
Expand Down Expand Up @@ -324,23 +325,17 @@ where
self
}

pub fn execution_layer(mut self, urls: &[&str]) -> Self {
pub fn execution_layer(mut self, url: &str) -> Self {
assert!(
self.execution_layer.is_none(),
"execution layer already defined"
);

let el_runtime = ExecutionLayerRuntime::default();

let urls: Vec<SensitiveUrl> = urls
.iter()
.map(|s| SensitiveUrl::parse(*s))
.collect::<Result<_, _>>()
.unwrap();

let config = execution_layer::Config {
execution_endpoints: urls,
secret_files: vec![],
execution_endpoint: SensitiveUrl::parse(url).unwrap(),
secret_file: PathBuf::from(DEFAULT_JWT_FILE),
suggested_fee_recipient: Some(Address::repeat_byte(42)),
..Default::default()
};
Expand Down
3 changes: 0 additions & 3 deletions beacon_node/client/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,6 @@ where
);
}

// Spawn a routine that tracks the status of the execution engines.
execution_layer.spawn_watchdog_routine(beacon_chain.slot_clock.clone());

// Spawn a routine that removes expired proposer preparations.
execution_layer.spawn_clean_proposer_caches_routine::<TSlotClock, TEthSpec>(
beacon_chain.slot_clock.clone(),
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/execution_layer/src/engine_api.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::engines::ForkChoiceState;
use crate::ForkChoiceState;
use async_trait::async_trait;
use eth1::http::RpcError;
pub use json_structures::TransitionConfigurationV1;
Expand Down
Loading