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

Add ETROG check to MaxL2BlockGasLimit #3418

Closed
tclemos opened this issue Mar 6, 2024 · 0 comments
Closed

Add ETROG check to MaxL2BlockGasLimit #3418

tclemos opened this issue Mar 6, 2024 · 0 comments

Comments

@tclemos
Copy link
Contributor

tclemos commented Mar 6, 2024

The code below checks if the returned gasLimit by the Executor is greater than the MaxL2BlockGasLimit and apply the limit to allow applications to be compatible with the node.

We must add the check for the ForkID and make sure this is applied only for ETROG or before.

        gasLimit := l2Block.GasLimit
	if gasLimit > MaxL2BlockGasLimit {
		gasLimit = MaxL2BlockGasLimit
	}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants