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
{{ message }}
Repository navigation
op-core/fees: port the FastLZ and Fjord L1-cost cross-implementation fuzzers from op-e2e/opgeth #23424
FuzzFjordCostFunction compares the Go Fjord L1 cost with GasPriceOracle.getL1Fee, run on an in-process op-geth L2.
They test op-geth's types.FlzCompressLen / NewL1CostFunc / NewRollupCostData. Deleting the package (#20275) would drop them.
They are behind the cgo_test build tag and run only from the fuzz target in op-e2e/justfile, which CI does not invoke.
Work
Move the three fuzzers next to op-core/fees, retargeted to fees.FlzCompressLen, fees.NewRollupCostData and fees.L1CostFjord.
The cgo and contract-backed parts need a home that may import op-e2e/fastlz and the GasPriceOracle bindings. A test-only package under op-core/fees or a surviving op-e2e package both work.
Keep the build tag if cgo stays required.
FuzzFjordCostFunction currently calls the oracle on the package's in-process op-geth L2 (op_geth.go), which goes away with the package. Give it another backend: either an upstream simulated backend with the GasPriceOracle/L1Block predeploys and their fee storage set, or an op-reth L2.
Read the fee parameters from the op-core/L1Block layout, not op-geth's types.*Slot constants.
Optionally wire a short fuzz run into CI. It is cheap insurance for consensus-relevant math.
Activity