Skip to content

feat(validator): add VALIDATOR_ env vars for independent block limits (backport #21060)#21132

Merged
spalladino merged 1 commit into
v4from
claudebox/redo-backport-21060-to-v4
Mar 4, 2026
Merged

feat(validator): add VALIDATOR_ env vars for independent block limits (backport #21060)#21132
spalladino merged 1 commit into
v4from
claudebox/redo-backport-21060-to-v4

Conversation

@AztecBot

@AztecBot AztecBot commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Backport of #21060 to v4. Redone from scratch on current v4 tip (after #21115 landed).

  • Adds VALIDATOR_MAX_L2_BLOCK_GAS, VALIDATOR_MAX_DA_BLOCK_GAS, VALIDATOR_MAX_TX_PER_BLOCK, and VALIDATOR_MAX_TX_PER_CHECKPOINT env vars so operators can tune validation limits independently from SEQ_ proposer limits
  • When a VALIDATOR_ var is not set, no per-block limit is enforced for that dimension (checkpoint-level protocol limits still apply)
  • P2P gossip validation uses VALIDATOR_MAX_TX_PER_BLOCK when set, falling back to the sequencer's maxTxsPerBlock
  • Validators can now pass per-block gas limits and tx limits to buildBlock during re-execution and validateCheckpoint for final validation

Changes from previous attempt (#21109)

The previous backport (#21109, now closed) was done before other PRs landed on v4 and became unmergeable. This is a clean redo on top of the current v4 tip where all prerequisites (validateCheckpoint, computeDAGasUsed, maxTxsPerCheckpoint) already exist.

Build verified clean: http://ci.aztec-labs.com/80f4d462d5b81f2f

ClaudeBox log: http://ci.aztec-labs.com/5215aa10b97d3ffe-1

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 4, 2026
@spalladino spalladino marked this pull request as ready for review March 4, 2026 18:39
@spalladino spalladino enabled auto-merge (squash) March 4, 2026 18:40
@spalladino spalladino disabled auto-merge March 4, 2026 19:03
@spalladino spalladino enabled auto-merge (squash) March 4, 2026 19:04
@AztecBot AztecBot force-pushed the claudebox/redo-backport-21060-to-v4 branch from 69ae5d8 to 51d4de0 Compare March 4, 2026 19:38
@spalladino spalladino merged commit d60df27 into v4 Mar 4, 2026
9 checks passed
@spalladino spalladino deleted the claudebox/redo-backport-21060-to-v4 branch March 4, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants