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

skip state db op when NoBaseFee is true #417

Merged

Conversation

zhiqiangxu
Copy link
Contributor

@zhiqiangxu zhiqiangxu commented Oct 29, 2024

There's no need to do extra state db operations when NoBaseFee is set and the fee fields are 0.

This PR makes the balance handling for OptimismBaseFeeRecipient and OptimismL1FeeRecipient consistent with Context.Coinbase.

It'll also save a few cpu cycles for rpc calls like eth_call/eth_estimate.

@zhiqiangxu zhiqiangxu requested a review from a team as a code owner October 29, 2024 01:38
@sebastianst sebastianst merged commit 7c55f13 into ethereum-optimism:optimism Oct 30, 2024
4 of 5 checks passed
boyuan-chen pushed a commit to bobanetwork/op-geth that referenced this pull request Nov 12, 2024
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.

2 participants