-
Notifications
You must be signed in to change notification settings - Fork 239
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 the execution_optimistic
flag to REST API responses.
#3780
Conversation
writer.endRecord() | ||
stream.getOutput(seq[byte]) | ||
except SerializationError: | ||
default |
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.
SerializationError
doesn't seem possible here, but why should this code return an empty response in case of an error instead of returning an error response?
value.previous_duty_dependent_root) | ||
writer.writeField("current_duty_dependent_root", | ||
value.current_duty_dependent_root) | ||
if value.optimistic.isSome(): |
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.
With the new Option
support, you should be able to remove these procs, no?
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.
I expect it.
execution_optimistic
flag to REST API responses.Eth-Consensus-Version
HTTP response header to/eth/v2/beacon/blocks/{block_id}
and/eth/v2/debug/beacon/states/{state_id}
endpoints./eth/v2/debug/beacon/heads
endpoint.execution_optimistic
to/eth/v1/events
outputs.is_optimistic
to/eth/v1/node/syncing
endpoint.