Skip to content

Apply block size check on validate_builder_submissionv5 #18110

@mattsse

Description

@mattsse

Describe the feature

for https://eips.ethereum.org/EIPS/eip-7934

we need to enforce:

if sealed_block.rlp_length() > MAX_RLP_BLOCK_SIZE {
return Err(PayloadBuilderError::other(ConsensusError::BlockTooLarge {
rlp_length: sealed_block.rlp_length(),
max_rlp_length: MAX_RLP_BLOCK_SIZE,
}));
}

this must be done against this block:

let block = self.payload_validator.ensure_well_formed_payload(ExecutionData {

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rpcRelated to the RPC implementationC-enhancementNew feature or requestD-good-first-issueNice and easy! A great choice to get started

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions