• clabby's avatar
    feat(ctb): Enforce maximum L2 gas limit (#10500) · 2c63288b
    clabby authored
    * 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`
    
    * Update SystemConfig.t.sol
    Co-authored-by: default avatarMatt Solomon <matt@mattsolomon.dev>
    
    ---------
    Co-authored-by: default avatarMatt Solomon <matt@mattsolomon.dev>
    2c63288b
Name
Last commit
Last update
..
deploy-config Loading commit data...
deployments Loading commit data...
invariant-docs Loading commit data...
lib Loading commit data...
periphery-deploy-config Loading commit data...
scripts Loading commit data...
snapshots Loading commit data...
src Loading commit data...
test Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gas-snapshot Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
STYLE_GUIDE.md Loading commit data...
foundry.toml Loading commit data...
package.json Loading commit data...
semver-lock.json Loading commit data...
slither.config.json Loading commit data...
slither.db.json Loading commit data...
tsconfig.build.json Loading commit data...
tsconfig.json Loading commit data...