-
Notifications
You must be signed in to change notification settings - Fork 36
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
tests: update tests to adapt with geth #656
Closed
Closed
Conversation
This file contains 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
chiphamskymavis
changed the title
core/vm: reject contract creation if the storage is non-empty
tests: update tests to adapt with geth
Jan 3, 2025
Current most of the test now passed, only the
|
The remaining FAIL test maybe caused due to this Update: use the tests with the earlier version v13 and test seem good |
chiphamskymavis
force-pushed
the
non-empty-storage
branch
2 times, most recently
from
January 6, 2025 04:28
cddb226
to
e7c942c
Compare
This change fixes a memory leak, when running either state-tests or blockchain-tests, we allocate a `1MB` fastcache during snapshot generation. `fastcache` is a bit special, and requires a `Reset()` (it has it's own memory allocator). The `1MB` was hidden [here](https://github.com/ethereum/go-ethereum/blob/master/tests/state_test_util.go#L333) and [here](https://github.com/ethereum/go-ethereum/blob/master/tests/block_test_util.go#L146) respectively.
chiphamskymavis
force-pushed
the
non-empty-storage
branch
from
January 6, 2025 06:54
e7c942c
to
1065efb
Compare
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.
This patch is included these changes:
core/vm: reject contract creation if the storage is non-empty
Partially cherry-pick from: ethereum/go-ethereum#28912
core/state, tests: fix memory leak via fastcache
Cherry-pick from: ethereum/go-ethereum#28387