From 6ea5f14b39889aa78fd5f9637513518e02c9939c Mon Sep 17 00:00:00 2001 From: Odinson Date: Sat, 28 Jun 2025 09:25:39 +0530 Subject: [PATCH] feat: better error message for light_client/bootstrap endpoint (#7597) Fixes #7229 --- beacon_node/beacon_chain/src/light_client_server_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon_node/beacon_chain/src/light_client_server_cache.rs b/beacon_node/beacon_chain/src/light_client_server_cache.rs index b7b6d1df18..3099c451c0 100644 --- a/beacon_node/beacon_chain/src/light_client_server_cache.rs +++ b/beacon_node/beacon_chain/src/light_client_server_cache.rs @@ -374,7 +374,7 @@ impl LightClientServerCache { let Some(current_sync_committee_branch) = store.get_sync_committee_branch(block_root)? else { return Err(BeaconChainError::LightClientBootstrapError(format!( - "Sync committee branch for block root {:?} not found", + "Sync committee branch for block root {:?} not found. This typically occurs when the block is not a finalized checkpoint. Light client bootstrap is only supported for finalized checkpoint block roots.", block_root ))); };