Skip to content

eof: Remove support for EOF Creation Transaction #1190

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Apr 8, 2025

No description provided.

Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.78%. Comparing base (48c2d63) to head (d639188).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1190      +/-   ##
==========================================
- Coverage   94.84%   94.78%   -0.07%     
==========================================
  Files         171      171              
  Lines       19501    19256     -245     
==========================================
- Hits        18496    18251     -245     
  Misses       1005     1005              
Flag Coverage Δ
eof_execution_spec_tests 2.59% <0.00%> (+0.03%) ⬆️
ethereum_tests 21.33% <8.95%> (+0.26%) ⬆️
ethereum_tests_silkpre 18.38% <12.50%> (+0.23%) ⬆️
execution_spec_tests 18.46% <8.95%> (+0.22%) ⬆️
unittests 92.42% <100.00%> (-0.11%) ⬇️

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

Files with missing lines Coverage Δ
lib/evmone/eof.cpp 86.21% <100.00%> (ø)
lib/evmone/eof.hpp 100.00% <ø> (ø)
lib/evmone/instructions_calls.cpp 98.38% <ø> (ø)
test/state/errors.hpp 67.24% <100.00%> (+1.16%) ⬆️
test/state/host.cpp 100.00% <100.00%> (ø)
test/state/state.cpp 99.07% <100.00%> (ø)
test/statetest/statetest_export.cpp 47.45% <100.00%> (+1.84%) ⬆️
test/unittests/eof_example_test.cpp 100.00% <ø> (ø)
...est/unittests/state_transition_eof_create_test.cpp 100.00% <100.00%> (ø)
test/unittests/state_tx_test.cpp 99.08% <100.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gumb0 gumb0 force-pushed the eof/drop-eof-create-tx branch from 04dc99e to fa6226c Compare April 8, 2025 17:14
@gumb0 gumb0 force-pushed the eof/drop-eof-create-tx branch from 5ee1029 to 3f282f4 Compare April 8, 2025 17:30
Base automatically changed from eof/txcreate to master April 9, 2025 10:59
@gumb0 gumb0 force-pushed the eof/drop-eof-create-tx branch from 3f282f4 to c0014e1 Compare April 9, 2025 17:15
@gumb0 gumb0 added the EOF label Apr 9, 2025
@gumb0 gumb0 marked this pull request as ready for review April 9, 2025 17:28
@gumb0 gumb0 requested review from chfast and pdobacz April 10, 2025 10:02
Copy link
Contributor

@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.

👍

@@ -754,74 +822,6 @@ bool is_eof_container(bytes_view container) noexcept
return container.starts_with(EOF_MAGIC);
}

std::variant<EOF1Header, EOFValidationError> validate_header(
Copy link
Contributor

Choose a reason for hiding this comment

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

If I'm not mistaken, this is just moved to a private namespace, no changes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's just a move

@gumb0 gumb0 force-pushed the eof/drop-eof-create-tx branch from c0014e1 to 46fac88 Compare April 11, 2025 10:20
@gumb0 gumb0 marked this pull request as draft April 14, 2025 15:58
@pdobacz pdobacz force-pushed the eof/drop-eof-create-tx branch from 46fac88 to 41a600d Compare April 15, 2025 13:33
gumb0 added 3 commits April 16, 2025 18:19
This is simplification, it is more natural to check it together with the check for truncated body.
This check was earlier moved into higher-level function to allow for stray bytes in EOF Creation Transactions.
No need to call from EOF Creation Transaction processing anymore.
@pdobacz pdobacz force-pushed the eof/drop-eof-create-tx branch from 41a600d to d639188 Compare April 16, 2025 16:20
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.

2 participants