4844 prep: Add Ecotone fork check & refactor l1 / data availability cost functions#203
Merged
sebastianst merged 2 commits intoethereum-optimism:optimismfrom Jan 3, 2024
Merged
Conversation
96d5d88 to
9070c32
Compare
protolambda
suggested changes
Dec 15, 2023
45fad37 to
109a9cf
Compare
cfcfdb1 to
b2ecbf7
Compare
mdehoog
reviewed
Dec 15, 2023
b2ecbf7 to
94ae9d3
Compare
mdehoog
reviewed
Dec 15, 2023
d85567d to
f69c847
Compare
f69c847 to
8cefec9
Compare
tynes
reviewed
Dec 19, 2023
tynes
reviewed
Dec 19, 2023
tynes
reviewed
Dec 19, 2023
tynes
reviewed
Dec 19, 2023
tynes
reviewed
Dec 19, 2023
tynes
reviewed
Dec 19, 2023
ad6bc47 to
38dc97a
Compare
da19188 to
057d2d5
Compare
protolambda
suggested changes
Dec 22, 2023
586e508 to
8d35379
Compare
tynes
reviewed
Dec 22, 2023
protolambda
reviewed
Dec 22, 2023
protolambda
reviewed
Dec 22, 2023
311c71c to
0d1d80f
Compare
protolambda
reviewed
Dec 22, 2023
e9ab7ac to
1f513f8
Compare
9a21cda to
2f2840d
Compare
…o swap in new ones
2f2840d to
ed89d0a
Compare
protolambda
approved these changes
Jan 3, 2024
… op-stack config, fix tx-pool l1-cost-func
protolambda
approved these changes
Jan 3, 2024
sebastianst
approved these changes
Jan 3, 2024
roberto-bayardo
pushed a commit
to roberto-bayardo/op-geth
that referenced
this pull request
Jan 3, 2024
…ost functions (ethereum-optimism#203) * add Ecotone upgrade getters & refactor L1CostFunc to make it easier to swap in new ones * core: nil instead of zero, always check empty rollup data-cost, check op-stack config, fix tx-pool l1-cost-func --------- Co-authored-by: protolambda <proto@protolambda.com> add Ecotone upgrade getters & refactor L1CostFunc to make it easier to swap in new ones
This was referenced Jan 16, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
We intend to introduce EIP-4844 support with Ecotone upgrade, which will require the ability to switch L1 data cost functions when Ecotone is activated. This PR adds ability to check if Ecotone is active, and also refactors the L1CostFunc code to allow L1DataCost functions based on transaction properties other than "RollupDataGas". These abstractions also allow removal of some of the duplicated l1 data cost logic within receipts.go.
Tests
Added a unit test to codify behavior of existing cost function & receipt processing.