Skip to content

Conversation

@stevencartavia
Copy link
Contributor

closes #19613

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

cool, smol nits

Comment on lines 201 to 202
let protocol_max_blob_count =
blob_params.as_ref().map(|params| params.max_blob_count).unwrap_or_default();
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we move this into unwrap_or_else


/// Maximum number of blobs to include per block.
#[arg(long = "builder.max-blobs", value_name = "COUNT")]
pub max_blobs_per_block: Option<u8>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this will (hopefully) eventually exceed 256, so we can just make this a u64 instead, then we can avoid type casts

// Apply user-configured blob limit (EIP-7872)
let max_blob_count = builder_config
.max_blobs_per_block
.map(|user_limit| std::cmp::min(user_limit as u64, protocol_max_blob_count).max(1))
Copy link
Collaborator

Choose a reason for hiding this comment

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

is max(1) part of the eip? that this can't be lower than that?
1 doesnt really make much sense really, so imo 0 is also a valid value here

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 10, 2025
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm!

@mattsse mattsse added this pull request to the merge queue Nov 11, 2025
@mattsse mattsse added the M-changelog This change should be included in the changelog label Nov 11, 2025
Merged via the queue into paradigmxyz:main with commit 5f6229f Nov 11, 2025
42 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

M-changelog This change should be included in the changelog

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Add support for eip-7872 Max blob flag for local builders

2 participants