Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TXCREATE #992

Merged
merged 3 commits into from
Sep 10, 2024
Merged

Remove TXCREATE #992

merged 3 commits into from
Sep 10, 2024

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Sep 9, 2024

TXCREATE and initcode transactions are not scheduled for any upgrade currently, and it doesn't make sense to maintain this code at the moment.

@gumb0 gumb0 added the EOF label Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.84%. Comparing base (12766de) to head (814b8cc).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #992      +/-   ##
==========================================
- Coverage   94.13%   93.84%   -0.30%     
==========================================
  Files         146      146              
  Lines       16259    15439     -820     
==========================================
- Hits        15305    14488     -817     
+ Misses        954      951       -3     
Flag Coverage Δ
eof_execution_spec_tests 17.42% <100.00%> (+0.82%) ⬆️
ethereum_tests 27.83% <22.22%> (+1.36%) ⬆️
ethereum_tests_silkpre 19.51% <12.50%> (+0.95%) ⬆️
execution_spec_tests 18.81% <22.22%> (+0.91%) ⬆️
unittests 89.00% <100.00%> (-0.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
lib/evmone/advanced_instructions.cpp 100.00% <ø> (ø)
lib/evmone/eof.hpp 100.00% <ø> (ø)
lib/evmone/execution_state.hpp 94.64% <ø> (-0.75%) ⬇️
lib/evmone/instructions.hpp 100.00% <ø> (ø)
lib/evmone/instructions_calls.cpp 99.04% <100.00%> (+0.38%) ⬆️
test/state/errors.hpp 56.81% <ø> (+6.81%) ⬆️
test/state/host.cpp 100.00% <ø> (ø)
test/state/host.hpp 100.00% <100.00%> (ø)
test/state/state.cpp 88.51% <100.00%> (-1.52%) ⬇️
test/state/state.hpp 100.00% <ø> (ø)
... and 7 more

... and 1 file with indirect coverage changes

@gumb0 gumb0 requested review from chfast and pdobacz September 9, 2024 13:20
lib/evmone/instructions_calls.cpp Outdated Show resolved Hide resolved
lib/evmone/instructions_calls.cpp Show resolved Hide resolved
Copy link
Collaborator

@pdobacz pdobacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • compute_initcode_list_cost should be able to be removed now
  • tx.initcodes
  • Transaction::Type::initcodes
  • possibly state test export and loader facilities?

https://github.com/ethereum/evmone/pull/702/files is my source, so maybe some are obsolete or maybe I haven't picked up all, sorry if these are already handled and I've missed

tx.to = To;
pre.insert(*tx.to, {.nonce = 1, .code = factory_container});

expect.tx_error = INIT_CODE_COUNT_LIMIT_EXCEEDED;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and a few other errors can be undefined now

            case INIT_CODE_SIZE_LIMIT_EXCEEDED:
                return "max initcode size exceeded";
            case INIT_CODE_EMPTY:
                return "initcode empty";
            case INIT_CODE_COUNT_LIMIT_EXCEEDED:
                return "max initcode count exceeded";
            case INIT_CODE_COUNT_ZERO:
                return "initcode list empty";

@gumb0 gumb0 force-pushed the eof/remove-txcreate branch 2 times, most recently from d5b2bfa to 5f24411 Compare September 10, 2024 10:12
Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks.
Please add a PR description before merging.

@gumb0 gumb0 merged commit a79218c into master Sep 10, 2024
24 of 25 checks passed
@gumb0 gumb0 deleted the eof/remove-txcreate branch September 10, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants