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

feat: flashbots_validateBuilderSubmissionV3 #12168

Merged
merged 18 commits into from
Oct 31, 2024
Merged

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Oct 29, 2024

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 on ValidationApi to validate blocks/headers

@github-actions github-actions bot added A-rpc Related to the RPC implementation C-enhancement New feature or request labels Oct 29, 2024
Copy link
Contributor

@ryanschneider ryanschneider left a 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 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

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

@klkvr
Copy link
Collaborator Author

klkvr commented Oct 31, 2024

@ryanschneider this should be complete, still blocked on alloy release though

@klkvr klkvr marked this pull request as ready for review October 31, 2024 15:59
@klkvr klkvr changed the title [wip] feat: flashbots_validateBuilderSubmissionV3 feat: flashbots_validateBuilderSubmissionV3 Oct 31, 2024
Copy link
Collaborator

@mattsse mattsse left a 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

crates/ethereum/consensus/src/lib.rs Show resolved Hide resolved
crates/ethereum/node/tests/e2e/rpc.rs Outdated Show resolved Hide resolved
crates/rpc/rpc/src/validation.rs Outdated Show resolved Hide resolved
book/cli/reth/node.md Outdated Show resolved Hide resolved
@mattsse mattsse added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit d020b41 Oct 31, 2024
41 checks passed
@mattsse mattsse deleted the klkvr/flashbots-validate branch October 31, 2024 19:45
@ryanschneider
Copy link
Contributor

Looks great @klkvr! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port validateBuilderSubmissionV3
3 participants