Skip to content

chore(builder): add ability to limit uncompressed block size#441

Merged
alessandromazza98 merged 5 commits intomainfrom
ale/limit-uncompressed-blocks
Mar 6, 2026
Merged

chore(builder): add ability to limit uncompressed block size#441
alessandromazza98 merged 5 commits intomainfrom
ale/limit-uncompressed-blocks

Conversation

@alessandromazza98
Copy link
Contributor

Description

Add the ability to limit max uncompressed block size in the builder.

@alessandromazza98 alessandromazza98 force-pushed the ale/limit-uncompressed-blocks branch from ba91e2a to a560fb5 Compare March 6, 2026 15:05
@worldcoin worldcoin deleted a comment from cursor bot Mar 6, 2026
@worldcoin worldcoin deleted a comment from cursor bot Mar 6, 2026
@alessandromazza98
Copy link
Contributor Author

Note that foundry CI is not working due to an external and temporary problem (I think rate limiting) that is definitely not related to this PR, so we can safely ignore it

Copy link
Contributor

@0xForerunner 0xForerunner left a comment

Choose a reason for hiding this comment

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

Looks great, nice work!

pub tx_peers: Option<Vec<PeerId>>,

/// Maximum cumulative uncompressed (EIP-2718 encoded) block size in bytes
#[arg(long)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually can we please add long = "block-uncompressed-size-limit"

Copy link
Contributor

Choose a reason for hiding this comment

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

as well as env ="BLOCK_UNCOMPRESSED_SIZE_LIMIT"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

by default it's like this if nothing is provided

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, now that I think about it this should be in the builder args
long = "builder.block-uncompressed-size-limit"
env ="BUILDER_BLOCK_UNCOMPRESSED_SIZE_LIMIT"

Copy link
Contributor

@0xForerunner 0xForerunner Mar 6, 2026

Choose a reason for hiding this comment

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

by default it's like this if nothing is provided

ah I thought clap defaulted to snake. TIL!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done btw, I've added it to builder args

pub tx_peers: Option<Vec<PeerId>>,

/// Maximum cumulative uncompressed (EIP-2718 encoded) block size in bytes
#[arg(long)]
Copy link
Contributor

Choose a reason for hiding this comment

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

as well as env ="BLOCK_UNCOMPRESSED_SIZE_LIMIT"

pub tx_peers: Option<Vec<PeerId>>,

/// Maximum cumulative uncompressed (EIP-2718 encoded) block size in bytes
#[arg(long)]
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, now that I think about it this should be in the builder args
long = "builder.block-uncompressed-size-limit"
env ="BUILDER_BLOCK_UNCOMPRESSED_SIZE_LIMIT"

@0xForerunner
Copy link
Contributor

We should probably also add a warn! when we hit the limit

@alessandromazza98 alessandromazza98 merged commit c5af1fb into main Mar 6, 2026
11 checks passed
@alessandromazza98 alessandromazza98 deleted the ale/limit-uncompressed-blocks branch March 6, 2026 18:12
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.

2 participants