mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-06 10:11:44 +00:00
Fix execution layer redundancy (#5588)
* remove execution layer url redundancy * fix typo * fix tests * fix formatting
This commit is contained in:
@@ -395,11 +395,9 @@ async fn create_local_network<E: EthSpec>(
|
||||
|
||||
if post_merge_sim {
|
||||
let el_config = execution_layer::Config {
|
||||
execution_endpoints: vec![SensitiveUrl::parse(&format!(
|
||||
"http://localhost:{}",
|
||||
EXECUTION_PORT
|
||||
))
|
||||
.unwrap()],
|
||||
execution_endpoint: Some(
|
||||
SensitiveUrl::parse(&format!("http://localhost:{}", EXECUTION_PORT)).unwrap(),
|
||||
),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
@@ -85,9 +85,9 @@ impl<E: EthSpec> LocalNetwork<E> {
|
||||
mock_execution_config,
|
||||
);
|
||||
el_config.default_datadir = execution_node.datadir.path().to_path_buf();
|
||||
el_config.secret_files = vec![execution_node.datadir.path().join("jwt.hex")];
|
||||
el_config.execution_endpoints =
|
||||
vec![SensitiveUrl::parse(&execution_node.server.url()).unwrap()];
|
||||
el_config.secret_file = Some(execution_node.datadir.path().join("jwt.hex"));
|
||||
el_config.execution_endpoint =
|
||||
Some(SensitiveUrl::parse(&execution_node.server.url()).unwrap());
|
||||
vec![execution_node]
|
||||
} else {
|
||||
vec![]
|
||||
@@ -180,9 +180,9 @@ impl<E: EthSpec> LocalNetwork<E> {
|
||||
config,
|
||||
);
|
||||
el_config.default_datadir = execution_node.datadir.path().to_path_buf();
|
||||
el_config.secret_files = vec![execution_node.datadir.path().join("jwt.hex")];
|
||||
el_config.execution_endpoints =
|
||||
vec![SensitiveUrl::parse(&execution_node.server.url()).unwrap()];
|
||||
el_config.secret_file = Some(execution_node.datadir.path().join("jwt.hex"));
|
||||
el_config.execution_endpoint =
|
||||
Some(SensitiveUrl::parse(&execution_node.server.url()).unwrap());
|
||||
self.execution_nodes.write().push(execution_node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user