Function try_into_sealed_block
pub fn try_into_sealed_block(
payload: ExecutionPayload,
sidecar: &ExecutionPayloadSidecar,
) -> Result<SealedBlock, PayloadError>
Expand description
Tries to create a sealed new block from the given payload and payload sidecar.
Uses try_into_block
to convert from the ExecutionPayload
to Block
and seals the
block with its hash.
Uses validate_block_hash
to validate the payload block hash and ultimately return the
SealedBlock
.
ยงNote
Empty ommers, nonce, difficulty, and execution request values are validated upon computing block
hash and comparing the value with payload.block_hash
.