-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending 0 as committee_index in GET AttestationData endpoint #4687
Comments
We currently call the produceAttestationData once per slot for all connected validators with duties at that slot. We're calling with committee index 0 since the resulting attestation data isn't actually dependent on the committee index. We reuse the result for all connected validators with duties at that slot. We probably wouldn't want to get rid of this optimization, but we could make the produceAttestationData call with a "real" committee index, eg: the committee index from the first duty in the list of duties for that slot. Would that resolve yall's issue? |
@wemeetagain yeah that would work for us 👍 |
Closing via #4695 |
Hey @wemeetagain 👋 Therefore, lodestar is incompatible in distributed validator cluster with other validator clients like teku and lighthouse. |
Proposed solution #5103 to resolve the Lodestar DVT compatibility issue |
Resolved by #5258 |
Describe the bug
While integrating lodestar to our Obol distributed validator cluster we found out that when calling GET attestation data endpoint from beacon node, lodestar sends committee index as 0.
lodestar/packages/validator/src/services/attestation.ts
Line 91 in bc20c21
Whereas other clients for ex, lighthouse and teku send committee index obtained at the time of getting attester duties endpoint. This results in timeout since we store attestation data with (slot, committee_index) as key.
Expected behavior
Lodestar should send actual
committee_index
as query parameter to GET attestation data endpoint rather than sending 0 obtained from attester duties endpoint so that it would be consistent with other clients and spec as well.Steps to Reproduce
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: