Skip to content

fix(anvil): validate blob count against per-tx limit, not per-block#13626

Merged
zerosnacks merged 1 commit intofoundry-rs:masterfrom
gutonosa:limit
Mar 9, 2026
Merged

fix(anvil): validate blob count against per-tx limit, not per-block#13626
zerosnacks merged 1 commit intofoundry-rs:masterfrom
gutonosa:limit

Conversation

@gutonosa
Copy link
Copy Markdown
Contributor

@gutonosa gutonosa commented Mar 4, 2026

validate_pool_transaction was checking blob count against max_blob_count (per-block limit) instead of max_blobs_per_tx (per-transaction limit).

Before Osaka these values are identical (both 6), so the bug was invisible. Osaka sets max_blob_count=9 and max_blobs_per_tx=6, which means anvil would accept transactions with 7-9 blobs that real nodes would reject.

Copy link
Copy Markdown
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks!

@zerosnacks zerosnacks merged commit c1cdc6c into foundry-rs:master Mar 9, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants