Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ctb): Enforce maximum L2 gas limit #10500

Merged
merged 2 commits into from
May 13, 2024
Merged

Commits on May 13, 2024

  1. feat(ctb): Enforce maximum L2 gas limit

    Enforces a maximum L2 gas limit within the `SystemConfig`. This change
    helps ensure that OP Stack chain governors keep the L2 block gas limit
    within a reasonable range in order to guarantee that the L2 blocks may
    be proven.
    
    * In the `_setResourceConfig` function, the new minimum gas limit is
    checked to be less than the current `gasLimit`. This value may never be
    larger than `MAX_GAS_LIMIT`, per the checks in `_setGasLimit`. This
    ensures that the `minimumGasLimit <= maximumGasLimit`
    clabby committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bcbfb5f View commit details
    Browse the repository at this point in the history
  2. Update SystemConfig.t.sol

    Co-authored-by: Matt Solomon <matt@mattsolomon.dev>
    clabby and mds1 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    348b165 View commit details
    Browse the repository at this point in the history