-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore(op-payload-builder): Refactor optimism_payload
into smaller, reusable functions
#10904
chore(op-payload-builder): Refactor optimism_payload
into smaller, reusable functions
#10904
Conversation
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.
is this linked to an issue?
My mistake, I just realized that I had not opened an issue. I opened a new issue just now and linked it in the PR description. |
valid issue! thanks for implementing! |
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
could you please run this against hive also |
I ran Hive against these these changes locally and received the following results. It looks like there are some expected failures defined in Also please let me know if there is a workflow or set of commands that I should run to evaluate the results against the expected outcomes.
|
@emhane Any thoughts on how best to proceed to get this merged in? |
it shouldn't be performing worse than the latest run on main, which it seems to do now. try merging latest main, run again and compare to latest run on main :) |
After merging the latest changes on main and rerunning hive against this branch, it looks like the result is the same compared to running against |
I don't necessarily agree with some decisions in this PR for example: this is redundant:
all these functions accept &self, when not required. and I find this a bit harder to read now |
Addresses #10935
This PR refactors the OP block building logic from the
optimism_payload
function into smaller methods implemented on theOptimismPayloadBuilder
struct.This change enhances the re-usability of the default
OptimismPayloadBuilder
logic, which is useful when implementing a custom OP Stack Payload builder.