Skip to content

Add logging to ValidateSuggestedBlock for MaxRlpBlockSize #9235

@0xMushow

Description

@0xMushow

The following check rejects a block without emitting any debug logs.

if (spec.IsEip7934Enabled && encodedSize > spec.Eip7934MaxRlpBlockSize)
{
errorMessage = BlockErrorMessages.ExceededBlockSizeLimit(spec.Eip7934MaxRlpBlockSize);
return false;

Unlike the checks that follow, this makes it harder to understand why a block was rejected when running in debug mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions