-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: flashbots_validateBuilderSubmissionV3
#12168
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.
lgtm! Also I think validate_builder_submission_v4
should "just work", the only change should be passing a ExecutionPayloadSidecar::v4
into ensure_well_formed_payload
!
Curious why you aren't using the alloy version of BuilderBlockValidationRequestV3
though.
/// <https://github.com/flashbots/builder/blob/7577ac81da21e760ec6693637ce2a81fe58ac9f8/eth/block-validation/api.go#L198-L202> | ||
#[serde_as] | ||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] | ||
pub struct BuilderBlockValidationRequestV3 { |
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.
Why not use the one from alloy? https://github.com/alloy-rs/alloy/blob/c4f3543361db76f960bdf65cff86d5c4088fa908/crates/rpc-types-beacon/src/relay.rs#L216
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.
that's temporary until we have a release with alloy-rs/alloy#1577 included
@ryanschneider this should be complete, still blocked on alloy release though |
flashbots_validateBuilderSubmissionV3
flashbots_validateBuilderSubmissionV3
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,
let's track the alloy update as a followup instead
Looks great @klkvr! Thank you! |
Closes #12132
Core logic is already ported, blacklisted addresses checks and configuration are missing for now. Also need to expose exiting configuration options to CLI.
I've added
Consensus
generic to rpc-builder types so that we can use it onValidationApi
to validate blocks/headers