reth::rpc::compat::engine::payload

Function try_into_block

pub fn try_into_block(
    value: ExecutionPayload,
    sidecar: &ExecutionPayloadSidecar,
) -> Result<Block, PayloadError>
Expand description

Tries to create a new unsealed block from the given payload and payload sidecar.

Performs additional validation of extra_data and base_fee_per_gas fields.

ยงNote

The log bloom is assumed to be validated during serialization.

See https://github.com/ethereum/go-ethereum/blob/79a478bb6176425c2400e949890e668a3d9a3d05/core/beacon/types.go#L145