feat(validator): add VALIDATOR_ env vars for independent block limits (backport #21060)#21132
Merged
Merged
Conversation
spalladino
approved these changes
Mar 4, 2026
69ae5d8 to
51d4de0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #21060 to v4. Redone from scratch on current v4 tip (after #21115 landed).
VALIDATOR_MAX_L2_BLOCK_GAS,VALIDATOR_MAX_DA_BLOCK_GAS,VALIDATOR_MAX_TX_PER_BLOCK, andVALIDATOR_MAX_TX_PER_CHECKPOINTenv vars so operators can tune validation limits independently fromSEQ_proposer limitsVALIDATOR_var is not set, no per-block limit is enforced for that dimension (checkpoint-level protocol limits still apply)VALIDATOR_MAX_TX_PER_BLOCKwhen set, falling back to the sequencer'smaxTxsPerBlockbuildBlockduring re-execution andvalidateCheckpointfor final validationChanges 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