Skip to content

Commit b24a3ea

Browse files
committed
Don't start update service if there's no EL
1 parent 3f56ed0 commit b24a3ea

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

beacon_node/beacon_chain/src/proposer_prep_service.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ pub fn start_proposer_prep_service<T: BeaconChainTypes>(
1111
executor: &TaskExecutor,
1212
chain: Arc<BeaconChain<T>>,
1313
) {
14-
executor.spawn(
15-
async move { proposer_prep_service(chain).await },
16-
"proposer_prep_service",
17-
);
14+
// Avoid spawning the service if there's no EL, it'll just error anyway.
15+
if chain.execution_layer.is_some() {
16+
executor.spawn(
17+
async move { proposer_prep_service(chain).await },
18+
"proposer_prep_service",
19+
);
20+
}
1821
}
1922

2023
async fn proposer_prep_service<T: BeaconChainTypes>(chain: Arc<BeaconChain<T>>) {

0 commit comments

Comments
 (0)