Skip to content

Commit

Permalink
Go back to original L1 fee handling
Browse files Browse the repository at this point in the history
We initially set the L1 fee to a fixed value of zero for Cel2. This is
not necessary because we configure those fees to be zero by setting the
fee scalars to zero that are applied to L1 base fees.

This reduces our changes to upstream, allows changing these values if we
ever want to and allows us to keep tests with non-zero scalars.
  • Loading branch information
karlb committed Oct 9, 2024
1 parent 48d7851 commit 5000ff3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/types/rollup_cost.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ func NewL1CostFunc(config *params.ChainConfig, statedb StateGetter) L1CostFunc {
forBlock := ^uint64(0)
var cachedFunc l1CostFunc
selectFunc := func(blockTime uint64) l1CostFunc {
if config.IsCel2(blockTime) {
return func(rcd RollupCostData) (fee, gasUsed *big.Int) { return new(big.Int), new(big.Int) }
}
if !config.IsOptimismEcotone(blockTime) {
return newL1CostFuncBedrock(config, statedb, blockTime)
}
Expand Down

0 comments on commit 5000ff3

Please sign in to comment.