-
Notifications
You must be signed in to change notification settings - Fork 110
chore(builder): remove flashblocks extra context #448
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
base: main
Are you sure you want to change the base?
chore(builder): remove flashblocks extra context #448
Conversation
🟡 Heimdall Review Status
|
haardikk21
left a comment
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.
minor nits
| Pool: PoolBounds, | ||
| Client: ClientBounds, | ||
| { | ||
| #[allow(clippy::too_many_arguments)] |
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.
ah i dont love this, but i guess its fine for now
8a04383 to
f625850
Compare
All done @haardikk21 let me know if anything else needs |
haardikk21
left a comment
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, will wait for another review before merge
Remove FlashblocksExtraCtx struct and inline its fields directly into OpPayloadBuilderCtx. This simplifies the code by eliminating an unnecessary layer of indirection. - Move all FlashblocksExtraCtx fields into OpPayloadBuilderCtx - Replace with_extra_ctx() with with_next_targets() - Update all ctx.extra.xxx usages to ctx.xxx - Return tuple instead of struct from build_next_flashblock() - Remove redundant flashblock_index() and target_flashblock_count() getters Closes base#443
f625850 to
5f82ea2
Compare
Summary
Remove the
FlashblocksExtraCtxstruct and inline its fields directly intoOpPayloadBuilderCtx. This eliminates an unnecessary layer of indirection since flashblocks is now the only builder mode.Changes
FlashblocksExtraCtxfields intoOpPayloadBuilderCtxwith_extra_ctx()withwith_next_flashblock()ctx.extra.xxxusages toctx.xxxbuild_next_flashblock()Test plan
cargo check -p op-rbuilderpassescargo check -p op-rbuilder --testspassesCloses #443