Repository navigation
feat: scale the gas limit at heze when slot duration changes - #1508
Open
barnabasbusa wants to merge 3 commits into
Open
barnabasbusa wants to merge 3 commits into
barnabasbusa wants to merge 3 commits into
Conversation
barnabasbusa
enabled auto-merge (squash)
October 20, 2026 08:38
There was a problem hiding this comment.
Summary
Adds a gas-limit entry at heze_fork_epoch scaled by the slot-duration ratio, mirroring #1505's BPO scheduling. Logic, rounding, default-setting order, and README claims all check out; the only gap is that the auto-inserted entry skips the >= gloas_fork_epoch validation that user entries must pass, which surfaces on out-of-order fork configs.
Issues
- 🟡
src/package_io/input_parser.star:228— Auto entry can land below gloas_fork_epoch, bypassing the schedule validation — see the thread on that line
Reviewed @ 5f079188
"In theory, there is no difference between theory and practice. In practice, there is." — attributed to Yogi Berra
… prysm VC at heze
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.
Following #1505, which keeps blob throughput per second constant across the EIP-8198 slot duration change, this keeps gas per second constant too: when
slot_duration_ms_hezediffers fromslot_duration_msand Heze is not at genesis, agas_limit_scheduleentry is added atheze_fork_epochwith the preceding gas limit (the last entry before Heze, elsegas_limit/genesis_gaslimit) scaled by the slot ratio, so shorter slots lower the gas limit and longer slots raise it at that same epoch (e.g. 200000000 at 6000ms → 133333333 at 4000ms, verified in the renderedGAS_LIMIT_SCHEDULE). Entries after Heze are kept as-is, an entry already atheze_fork_epochdisables the auto entry, and with an unchanged slot duration nothing changes.