Skip to content

Add an option to disable "fee-charge" on op-revm#2980

Merged
rakita merged 1 commit intobluealloy:mainfrom
ngotchac:ngotchac/disable-fee-charge
Sep 17, 2025
Merged

Add an option to disable "fee-charge" on op-revm#2980
rakita merged 1 commit intobluealloy:mainfrom
ngotchac:ngotchac/disable-fee-charge

Conversation

@ngotchac
Copy link
Contributor

An option to disable fee charges, only meaningful on op-revm is added, which doesn't charge additional fees, in addition from the default fee from the gas limit and gas price.

This is useful for eth_calls which should disable all fees.

See paradigmxyz/reth#18470

An option to disable fee charges, only meaningful on `op-revm` is added,
which doesn't charge additional fees, in addition from the default fee
from the gas limit and gas price.

This is useful for `eth_call`s which should disable all fees.

See paradigmxyz/reth#18470
@codspeed-hq
Copy link

codspeed-hq bot commented Sep 16, 2025

CodSpeed Performance Report

Merging #2980 will not alter performance

Comparing ngotchac:ngotchac/disable-fee-charge (e5d5887) with main (6774603)

Summary

✅ 173 untouched

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

reasonable

lgtm, pending @rakita


// The L1-cost fee is only computed for Optimism non-deposit transactions.
if !is_deposit {
if !is_deposit && !ctx.cfg().is_fee_charge_disabled() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

checks out

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

Would introduce configurable flags in the future, but for the sake of moving forward/unblocking this lgtm

@rakita rakita merged commit 8972bc2 into bluealloy:main Sep 17, 2025
31 checks passed
@ngotchac ngotchac deleted the ngotchac/disable-fee-charge branch September 17, 2025 08:41
@github-actions github-actions bot mentioned this pull request Sep 16, 2025
rakita pushed a commit that referenced this pull request Sep 23, 2025
)

An option to disable fee charges, only meaningful on `op-revm` is added,
which doesn't charge additional fees, in addition from the default fee
from the gas limit and gas price.

This is useful for `eth_call`s which should disable all fees.

See paradigmxyz/reth#18470
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
…uealloy/revm#2980)

An option to disable fee charges, only meaningful on `op-revm` is added,
which doesn't charge additional fees, in addition from the default fee
from the gas limit and gas price.

This is useful for `eth_call`s which should disable all fees.

See paradigmxyz/reth#18470
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