-
Notifications
You must be signed in to change notification settings - Fork 283
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
Make execution_optimistic
required field in GetProposerDuties
#7054
Make execution_optimistic
required field in GetProposerDuties
#7054
Conversation
Since it's not a spec requirement and we want it to be included anyway maybe we could add a test then |
There are already tests. I just changed the expected json. |
8b7dda3
to
33bf9f3
Compare
At first I don't see |
Good point. Seems to be part of this PR ethereum/beacon-APIs#254 but it is not added to the attester duties response and I don't think it is relevant to it as well. So removed it. @rolfyone any thoughts on this? |
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
Sorry, my preference would have been we kept the optional and defaulted the second part to false so that we always had a value, but the structure sees it as optional still... |
Hmm not sure, we are only modifying the json type definition of the API response. The VC which can call different servers uses a jackson class to deserialise and that can still parse without that field exisiting. I think main ambition was to make it consistent with the sync duties and attester duties response which had the field as required. |
if this is server side purely, we're probably ok. it's fine to send all the time, just if we're using this object to receive a response it needs to be optional... hope that clarifies... |
Yeah, we use this class for deserialisation https://github.com/ConsenSys/teku/blob/master/data/serializer/src/main/java/tech/pegasys/teku/api/response/v1/validator/GetProposerDutiesResponse.java |
PR Description
execution_optimistic
a required field so it is included even when the value is false (consistent with sync and attester duties)finalized
field from PostAttesterDuties since it was not in the specFixed Issue(s)
fixes #7053
Documentation
doc-change-required
label to this PR if updates are required.Changelog