Skip to content
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

Merged
merged 5 commits into from
Jun 20, 2022
Merged

Conversation

cheatfate
Copy link
Contributor

  • Add the execution_optimistic flag to REST API responses.
  • Add Eth-Consensus-Version HTTP response header to /eth/v2/beacon/blocks/{block_id} and /eth/v2/debug/beacon/states/{state_id} endpoints.
  • Add implementation of /eth/v2/debug/beacon/heads endpoint.
  • Add execution_optimistic to /eth/v1/events outputs.
  • Add is_optimistic to /eth/v1/node/syncing endpoint.

@github-actions
Copy link

Unit Test Results

     12 files  ±0     857 suites  ±0   1h 9m 32s ⏱️ + 1m 56s
1 716 tests ±0  1 664 ✔️ ±0    52 💤 ±0  0 ±0 
9 960 runs  ±0  9 832 ✔️ ±0  128 💤 ±0  0 ±0 

Results for commit 3761011. ± Comparison against base commit 9dcbc44.

writer.endRecord()
stream.getOutput(seq[byte])
except SerializationError:
default
Copy link
Contributor

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():
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect it.

@zah zah merged commit eb6b7af into unstable Jun 20, 2022
@zah zah deleted the execopt branch June 20, 2022 05:53
@zah zah mentioned this pull request Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants