-
Notifications
You must be signed in to change notification settings - Fork 440
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
Throw on non-empty storage #7194
Conversation
Save from metrics failures Update tests
src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Evm/TransactionProcessing/TransactionProcessor.cs
Outdated
Show resolved
Hide resolved
1587578
to
1f96c33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be gated behind an eip7610 chianspec flag?
Also has test submodule changes in PR, not sure if you want those
Rare case of retroactive application, starting from block 0
Yup, it's an Ethereum tests update. |
Yeah but does it apply to every chain? Could it cause consensus issue if we include it in next release but other EL's haven't included it yet? |
Yes
Should not, the case covers theoretically possible collision, that are not expected to happen in practice. And some clients already added it the same way And if some custom chain would try to make use of just storage accounts, we would be aware of that. |
Fixes some hive tests
Clarifications
The check is applied in two places: on top level - when we have a create contract transacation; in a CREATE/CREATE call.
On top level we should not expect storqage to be non zero because selfdestructed contract - so we don't need to clean up
When CREATE* call is executed we return due to collision and do not reach post-selfdestruct clean up
We revert in any case
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?