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

optimistic v2 slowpath #530

Open
wants to merge 9 commits into
base: mikeneuder-2023-09-08-01
Choose a base branch
from

Conversation

michaelneuder
Copy link
Collaborator

@michaelneuder michaelneuder commented Sep 15, 2023

📝 Summary

Completion of the v2 code. This is diffed off #524 to make the review clearer.

This follows up on the series: #479, #491, #494, #498, #513, #514, #518, #524 which aim at reducing the diff and productionizing #466.

⛱ Motivation and Context

This PR implements the slow path of the v2 code, which parses the full transactions and withdrawals, saves the payload, and runs the simulation.

📚 References

https://notes.ethereum.org/@mikeneuder/optimistic-v2

https://github.com/michaelneuder/optimistic-relay-documentation/blob/main/towards-epbs.md#optimistic-relay-v2-header-only-parsing


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

@codecov-commenter
Copy link

Codecov Report

Merging #530 (1990182) into mikeneuder-2023-09-08-01 (335bff2) will increase coverage by 0.42%.
The diff coverage is 68.88%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@                     Coverage Diff                      @@
##           mikeneuder-2023-09-08-01     #530      +/-   ##
============================================================
+ Coverage                     35.64%   36.07%   +0.42%     
============================================================
  Files                            24       24              
  Lines                          5387     5467      +80     
============================================================
+ Hits                           1920     1972      +52     
- Misses                         3243     3266      +23     
- Partials                        224      229       +5     
Flag Coverage Δ
unittests 36.07% <68.88%> (+0.42%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
services/api/service.go 47.02% <68.88%> (+0.71%) ⬆️

eligibleAt time.Time
pf common.Profile
entry *blockBuilderCacheEntry
gasLimit uint64
}

func (api *RelayAPI) optimisticV2SlowPath(r io.Reader, v2Opts v2SlowPathOpts) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

a bit of docs would be nice, to outline what'll happen in this function

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.

3 participants