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

fix: Only apply effective gas limit when building new blocks #394

Conversation

BrianBland
Copy link
Contributor

Description

This changes the behavior of the miner's effective gas limit such that this no longer applies to blocks with the noTxs flag set.

As the effective gas limit is not a consensus property, other nodes must not reject sequenced blocks which contain a greater amount of gas than this "effective" limit, and thus this should only be applied when building blocks containing mempool transactions. Otherwise only the true consensus gas limit should be enforced.

This is an important fix when running multiple sequencers under consensus, as any increase to the effective gas limit on one sequencer may cause the others to reject any blocks with this higher limit and fork off to their own chain.

Tests

Additional context

Metadata

@BrianBland BrianBland requested a review from a team as a code owner October 1, 2024 23:28
miner/worker.go Outdated Show resolved Hide resolved
@roberto-bayardo roberto-bayardo merged commit 2a8b364 into ethereum-optimism:optimism Oct 2, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants