We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f56ed0 commit b24a3eaCopy full SHA for b24a3ea
1 file changed
beacon_node/beacon_chain/src/proposer_prep_service.rs
@@ -11,10 +11,13 @@ pub fn start_proposer_prep_service<T: BeaconChainTypes>(
11
executor: &TaskExecutor,
12
chain: Arc<BeaconChain<T>>,
13
) {
14
- executor.spawn(
15
- async move { proposer_prep_service(chain).await },
16
- "proposer_prep_service",
17
- );
+ // Avoid spawning the service if there's no EL, it'll just error anyway.
+ if chain.execution_layer.is_some() {
+ executor.spawn(
+ async move { proposer_prep_service(chain).await },
18
+ "proposer_prep_service",
19
+ );
20
+ }
21
}
22
23
async fn proposer_prep_service<T: BeaconChainTypes>(chain: Arc<BeaconChain<T>>) {
0 commit comments