mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-04-08 03:01:12 -04:00
feat: op-reth (#4377)
Co-authored-by: Roberto Bayardo <bayardo@alum.mit.edu> Co-authored-by: refcell.eth <abigger87@gmail.com> Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com> Co-authored-by: refcell <refcell@oplabs.co> Co-authored-by: nicolas <48695862+merklefruit@users.noreply.github.com>
This commit is contained in:
@@ -557,6 +557,13 @@ where
|
||||
if let Some(ref attrs) = payload_attrs {
|
||||
let attr_validation_res = self.validate_version_specific_fields(version, &attrs.into());
|
||||
|
||||
#[cfg(feature = "optimism")]
|
||||
if attrs.optimism_payload_attributes.gas_limit.is_none() &&
|
||||
self.inner.chain_spec.is_optimism()
|
||||
{
|
||||
return Err(EngineApiError::MissingGasLimitInPayloadAttributes)
|
||||
}
|
||||
|
||||
// From the engine API spec:
|
||||
//
|
||||
// Client software MUST ensure that payloadAttributes.timestamp is greater than
|
||||
|
||||
Reference in New Issue
Block a user