mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
feat: better error message for light_client/bootstrap endpoint (#7597)
Fixes #7229
This commit is contained in:
@@ -374,7 +374,7 @@ impl<T: BeaconChainTypes> LightClientServerCache<T> {
|
|||||||
let Some(current_sync_committee_branch) = store.get_sync_committee_branch(block_root)?
|
let Some(current_sync_committee_branch) = store.get_sync_committee_branch(block_root)?
|
||||||
else {
|
else {
|
||||||
return Err(BeaconChainError::LightClientBootstrapError(format!(
|
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
|
block_root
|
||||||
)));
|
)));
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user