-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: call validate_execution_requests from validate_version_specific_fields for ethereum engine validator #14932
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.
we can likely fix some of those with additional checks but imo this is unnecessary because any malformed requests will end up as invalid payload anyway
/// Returns `None` in all other cases. | ||
pub fn execution_requests(&self) -> Option<&Requests> { | ||
if let Self::ExecutionPayload(payload) = self { | ||
payload.sidecar.prague().and_then(|prague_fields| match &prague_fields.requests { |
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.
there's also fn requests -> Option<&Requests> I believe
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.
awesome thx! changes to use it here 3cc6d1b
successful hive execution from this branch https://github.com/paradigmxyz/reth/actions/runs/13786338679 |
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!
can we remove this function entirely
reth/crates/engine/primitives/src/lib.rs
Lines 139 to 145 in aaae309
/// Validates the execution requests according to [EIP-7685](https://eips.ethereum.org/EIPS/eip-7685). | |
fn validate_execution_requests( | |
&self, | |
requests: &Requests, | |
) -> Result<(), EngineObjectValidationError> { | |
validate_execution_requests(requests) | |
} |
sure, done here 66765ac |
Closes #14933