• 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
..
AddressAliasHelper.md Loading commit data...
Burn.Eth.md Loading commit data...
Burn.Gas.md Loading commit data...
CrossDomainMessenger.md Loading commit data...
Encoding.md Loading commit data...
FaultDisputeGame.md Loading commit data...
Hashing.md Loading commit data...
InvariantTest.sol.md Loading commit data...
L2OutputOracle.md Loading commit data...
OptimismPortal.md Loading commit data...
OptimismPortal2.md Loading commit data...
README.md Loading commit data...
ResourceMetering.md Loading commit data...
SafeCall.md Loading commit data...
SystemConfig.md Loading commit data...