Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 4addc94

Browse files
authored
chore: relax executiondata bound (paradigmxyz#16478)
1 parent 5c5da0b commit 4addc94

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

crates/optimism/node/src/engine.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,20 @@ where
144144

145145
impl<Types, P> EngineValidator<Types> for OpEngineValidator<P>
146146
where
147-
Types: PayloadTypes<PayloadAttributes = OpPayloadAttributes, ExecutionData = OpExecutionData>,
147+
Types: PayloadTypes<
148+
PayloadAttributes = OpPayloadAttributes,
149+
ExecutionData = <Self as PayloadValidator>::ExecutionData,
150+
>,
148151
P: StateProviderFactory + Unpin + 'static,
149152
{
150153
fn validate_version_specific_fields(
151154
&self,
152155
version: EngineApiMessageVersion,
153-
payload_or_attrs: PayloadOrAttributes<'_, Self::ExecutionData, OpPayloadAttributes>,
156+
payload_or_attrs: PayloadOrAttributes<
157+
'_,
158+
Types::ExecutionData,
159+
<Types as PayloadTypes>::PayloadAttributes,
160+
>,
154161
) -> Result<(), EngineObjectValidationError> {
155162
validate_withdrawals_presence(
156163
self.chain_spec(),
@@ -171,7 +178,7 @@ where
171178
fn ensure_well_formed_attributes(
172179
&self,
173180
version: EngineApiMessageVersion,
174-
attributes: &OpPayloadAttributes,
181+
attributes: &<Types as PayloadTypes>::PayloadAttributes,
175182
) -> Result<(), EngineObjectValidationError> {
176183
validate_version_specific_fields(
177184
self.chain_spec(),

0 commit comments

Comments
 (0)