ethereum / execution-specs

Specification for the Execution Layer. Tracking network upgrades.
Creative Commons Zero v1.0 Universal
810 stars 225 forks source link

Support `Dao Fork` and other `state.fork` options for t8n #737

Closed gurukamath closed 1 year ago

gurukamath commented 1 year ago

What was wrong?

The go-ethereum version of t8n supports various options for --state.fork which involve transition for one fork to the next at a certain block number. E.g - FrontierToHomesteadAt5. The t8n tool also doesn't support the DAO Fork.

Related to Issue #625

How was it fixed?

This commit adds support for the transition options. It also adds support for the Dao Fork.

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 85.71% and project coverage change: +2.44 :tada:

Comparison is base (05f6ab0) 82.47% compared to head (2af23de) 84.91%.

:exclamation: Current head 2af23de differs from pull request most recent head c7afa88. Consider uploading reports for the commit c7afa88 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #737 +/- ## ========================================== + Coverage 82.47% 84.91% +2.44% ========================================== Files 570 570 Lines 31568 31571 +3 ========================================== + Hits 26036 26810 +774 + Misses 5532 4761 -771 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `84.91% <85.71%> (+2.44%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://codecov.io/gh/ethereum/execution-specs/pull/737?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) | Coverage Δ | | |---|---|---| | [src/ethereum/dao\_fork/fork.py](https://codecov.io/gh/ethereum/execution-specs/pull/737?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#diff-c3JjL2V0aGVyZXVtL2Rhb19mb3JrL2ZvcmsucHk=) | `23.61% <50.00%> (+23.61%)` | :arrow_up: | | [src/ethereum/dao\_fork/dao.py](https://codecov.io/gh/ethereum/execution-specs/pull/737?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum#diff-c3JjL2V0aGVyZXVtL2Rhb19mb3JrL2Rhby5weQ==) | `100.00% <100.00%> (+100.00%)` | :arrow_up: | ... and [35 files with indirect coverage changes](https://codecov.io/gh/ethereum/execution-specs/pull/737/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum) Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ethereum)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.