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

feat: disable l1 data gas cost in --dev mode #10332

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Aug 15, 2024

in OP --dev mode we don't have an L1 block, this would just result in a bunch of issues.

hence we should just disable this entirely

@mattsse mattsse added C-enhancement New feature or request A-op-reth Related to Optimism and op-reth labels Aug 15, 2024
Comment on lines +121 to 127
if !self.requires_l1_data_gas_fee() {
// no need to check L1 gas fee
return outcome
}

// ensure that the account has enough balance to cover the L1 gas cost
if let TransactionValidationOutcome::Valid {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would prefer to do if self.requires_l1_data_gas_fee() { and check the data gas fee inside the clause, so that if we add something after balance check for l1 gas cost, we don't short circuit here

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense when we need additional checks but currently this is the only thing we're checking

Copy link
Member

@fgimenez fgimenez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mattsse mattsse enabled auto-merge August 15, 2024 19:54
@mattsse mattsse added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit bff65e5 Aug 15, 2024
35 checks passed
@mattsse mattsse deleted the matt/disable-l1-data-gas-fee-in-dev-mode branch August 15, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants