Skip to content

blobpool: fix blob validation rule#31827

Closed
0x00101010 wants to merge 1 commit intoethereum:masterfrom
0x00101010:fix/blob-tx-limit
Closed

blobpool: fix blob validation rule#31827
0x00101010 wants to merge 1 commit intoethereum:masterfrom
0x00101010:fix/blob-tx-limit

Conversation

@0x00101010
Copy link
Copy Markdown

@0x00101010 0x00101010 commented May 14, 2025

Currently if we try to submit transactions over 7 blobs, we'll get oversized data: transaction size 1049793, limit 1048576 error

This PR fixes that by taking the blob count into consideration when validating blob transactions

@0x00101010 0x00101010 requested a review from rjl493456442 as a code owner May 14, 2025 20:41
@0x00101010 0x00101010 changed the title blobpoo: fix blob validation rule blobpool: fix blob validation rule May 14, 2025
Config: p.chain.Config(),
Accept: 1 << types.BlobTxType,
MaxSize: txMaxSize,
MaxSize: txMaxSize + uint64(eip4844.LatestMaxBlobsPerBlock(p.chain.Config())*blobSize),
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation happens here, where tx.Size() does indeed calculate blob sizes

@Thegaram
Copy link
Copy Markdown
Contributor

Fyi relevant issue: #31792.

@MariusVanDerWijden
Copy link
Copy Markdown
Member

closing in favor of #31837

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants