-
Notifications
You must be signed in to change notification settings - Fork 119
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
base: mikeneuder-2023-09-08-01
Are you sure you want to change the base?
Conversation
Codecov Report
❗ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
|
eligibleAt time.Time | ||
pf common.Profile | ||
entry *blockBuilderCacheEntry | ||
gasLimit uint64 | ||
} | ||
|
||
func (api *RelayAPI) optimisticV2SlowPath(r io.Reader, v2Opts v2SlowPathOpts) { |
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.
a bit of docs would be nice, to outline what'll happen in this function
📝 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
CONTRIBUTING.md