-
Notifications
You must be signed in to change notification settings - Fork 169
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
add /eth/v1/validator/duties/sync/{epoch}
#134
Conversation
create a spec for sync committee duties for altair. I'm open to making this more clearly altair specific, for now I've worked it into the typing information.
… would be multiple entries per validator, which would be a lot of duplication
@mcdee follow up questions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, would love to get feedback from some implementers from other teams though
I think an empty response makes most sense here, and as a general method of approaching this problem for future calls. It isn't a mistake to ask for sync committees for epoch 0, there just weren't any due to the function not being present in the beacon chain at that point. |
What's the range of correct
|
In relation to #144 and the comment above I believe it would be simpler if we change the route to
sync committees should be though with periods not epochs |
Query by epoch is fine, the server side can calculate the period trivially. Introducing a new parameter to query by is likely to be more confusing rather than helpful. The server will need to be able to get an appropriate state to process the request, so if it's too far ahead, or the beacon node is not storing old states, then the window will be limited for what is going to be a serviceable request. Any node that's not syncing should be able to respond with the current sync committee period and next, so that's a lot of epochs that will be valid. All the client wants is 'give me the sync committee duties at epoch X', and it the beacon node can figure out the details. In terms of when to re-query, at the simplest clients can re-query each epoch if they desire and it shouldn't be a drain. if they want to save some queries, then the sync committee period is well documented in the spec... The valid epochs should be from the altair fork epoch to a sync committee period ahead of the current epochs committee period. |
Already this PR in Lodestar. I would merge.
Yes
Empty response is good |
create a spec for sync committee duties for altair.
I'm open to making this more clearly altair specific, for now I've worked it into the typing information.
Basically I transcribed @mcdee hackmd from https://hackmd.io/@QYHAVYiHRg65pdI_CEm7Eg/syncommitteeapi#POST-ethv1validatordutiessyncepoch