ethereum-optimism / op-geth

GNU Lesser General Public License v3.0
255 stars 654 forks source link

Ecotone l1 cost function #210

Closed roberto-bayardo closed 5 months ago

roberto-bayardo commented 5 months ago

Description

Adds the logic for computing L1 data fee after the Ecotone upgrade.

Tests

Added unit tests exercising the new codepaths and tests to make sure appropriate cost function is computed based on the upgrades active in the config. Better aligned the optimism specific receipt tests with those in rollup_test.go.

roberto-bayardo commented 5 months ago

This is now updated to match the latest changes to L2 contracts and updated spec.