-
Notifications
You must be signed in to change notification settings - Fork 960
Closed as duplicate of#7456
Description
Hi there,
Notived that the endpoint /eth/v1/validator/blinded_blocks/{slot} has been removed from the beacon-api by Lodestar, Prysm and Teku in Electra. I think lighthouse should align with other clients.
However, lighthouse still have this implemented in:
lighthouse/beacon_node/http_api/src/lib.rs
Lines 3435 to 3469 in 999b045
| // GET validator/attestation_data?slot,committee_index | |
| let get_validator_attestation_data = eth_v1 | |
| .and(warp::path("validator")) | |
| .and(warp::path("attestation_data")) | |
| .and(warp::path::end()) | |
| .and(warp::query::<api_types::ValidatorAttestationDataQuery>()) | |
| .and(not_while_syncing_filter.clone()) | |
| .and(task_spawner_filter.clone()) | |
| .and(chain_filter.clone()) | |
| .then( | |
| |query: api_types::ValidatorAttestationDataQuery, | |
| not_synced_filter: Result<(), Rejection>, | |
| task_spawner: TaskSpawner<T::EthSpec>, | |
| chain: Arc<BeaconChain<T>>| { | |
| task_spawner.blocking_json_task(Priority::P0, move || { | |
| not_synced_filter?; | |
| let current_slot = chain.slot().map_err(warp_utils::reject::unhandled_error)?; | |
| // allow a tolerance of one slot to account for clock skew | |
| if query.slot > current_slot + 1 { | |
| return Err(warp_utils::reject::custom_bad_request(format!( | |
| "request slot {} is more than one slot past the current slot {}", | |
| query.slot, current_slot | |
| ))); | |
| } | |
| chain | |
| .produce_unaggregated_attestation(query.slot, query.committee_index) | |
| .map(|attestation| attestation.data().clone()) | |
| .map(api_types::GenericResponse::from) | |
| .map_err(warp_utils::reject::unhandled_error) | |
| }) | |
| }, | |
| ); |
The endpoint can be called with:
curl -X GET http://127.0.0.1:6944/eth/v1/validator/blinded_blocks/112?randao_reveal=0x8dfc48906496c1f52c368207b47be0c39dc2751b3705f5a382aaa61b91a239c640ae2cb2ed3bf35603d60dc1c3c296fc06687ac48c3aa134f16d3efbd6d199be4da91457210611b0cae207f1ad12b6177a747cd7132729af04017acc61984b5a
{"code":500,"message":"UNHANDLED_ERROR: BlockProcessingError(RandaoSignatureInvalid)","stacktraces":[]}
Thanks for your attention!
Metadata
Metadata
Assignees
Labels
No labels