You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we short-circuit the l1-fee calculation within the STF and the mempool so that the L1CostFunc that is used in the BlockContext or mempool environment just returns 0 without any considerations for the SystemConfigblobbasefeeScalar and basefeeScalar parameters:
In comparison to that, the l1 cost function that is used for calculating fields in transaction receipts does not include the short-circuit cost function. It thus returns e.g. Ecotone based values for the fees in the receipt:
This is not compatible and results in confusion from an end-user perspective.
We should set the l1 fees to zero via the SystemConfig scalar mechanism and remove the short circuit function.
That way, we achieve code-parity with upstream, a consistency between fee-deduction and receipt values and zero l1 fee.
Currently we short-circuit the l1-fee calculation within the STF and the mempool so that the
L1CostFunc
that is used in theBlockContext
or mempool environment just returns0
without any considerations for theSystemConfig
blobbasefeeScalar
andbasefeeScalar
parameters:op-geth/core/types/rollup_cost.go
Lines 127 to 129 in 48d7851
In comparison to that, the l1 cost function that is used for calculating fields in transaction receipts does not include the short-circuit cost function. It thus returns e.g.
Ecotone
based values for the fees in the receipt:op-geth/core/types/rollup_cost.go
Lines 263 to 273 in 48d7851
This can be verified by querying a random Alfajores transaction:
This is not compatible and results in confusion from an end-user perspective.
We should set the l1 fees to zero via the
SystemConfig
scalar mechanism and remove the short circuit function.That way, we achieve code-parity with upstream, a consistency between fee-deduction and receipt values and zero l1 fee.
Related: celo-org/optimism#225
The text was updated successfully, but these errors were encountered: