Skip to content

feat: consider EIP-7623 floor gas in message queue #118

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

Merged
merged 2 commits into from
Jun 11, 2025
Merged

Conversation

Thegaram
Copy link
Contributor

EIP-7623 introduces a new floor gas, in addition to the existing intrinsic gas.

L1 messages must be processed and cannot be skipped. That means that L1 messages cannot fail the gas checks on L2. We ensure this by requiring a conservative minimum gas limit on L1.

This part of the EIP-7623 spec shows that we need to change the conservative per-byte gas multiplier from 16 to 40.

tokens_in_calldata = zero_bytes_in_calldata + nonzero_bytes_in_calldata * 4
intrinsic_gas = 4 * tokens_in_calldata
floor_gas = 10 * tokens_in_calldata
gas = 21_000 + max(intrinstic_gas, floor_gas)

@Thegaram Thegaram requested a review from zimpha June 11, 2025 12:53
@Thegaram Thegaram requested a review from colinlyguo June 11, 2025 13:10
@Thegaram Thegaram merged commit 492b1c0 into main Jun 11, 2025
5 checks passed
@Thegaram Thegaram deleted the Thegaram-patch-1 branch June 11, 2025 13:29
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