fix(http_api): ignore committee_index in attestation data endpoint (#9437)

Co-Authored-By: Vansh Sahay <vansh.sahay1234@gmail.com>

Co-Authored-By: chonghe <44791194+chong-he@users.noreply.github.com>
This commit is contained in:
Vansh Sahay
2026-06-17 06:46:09 +05:30
committed by GitHub
parent e8472b9d77
commit eb0da57044
2 changed files with 16 additions and 1 deletions

View File

@@ -277,8 +277,10 @@ pub fn get_validator_attestation_data<T: BeaconChainTypes>(
)));
}
// Always use committee_index 0 regardless of the query parameter, since
// attestation data does not depend on the committee index post-Electra.
chain
.produce_unaggregated_attestation(query.slot, query.committee_index)
.produce_unaggregated_attestation(query.slot, 0)
.map(|attestation| attestation.data().clone())
.map(GenericResponse::from)
.map_err(warp_utils::reject::unhandled_error)