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

fix(trie): delete self destructed accounts from sparse trie #13168

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

shekhirin
Copy link
Collaborator

We need to do the same as in tests

if destroyed || account.is_empty() {

Revm doesn't set the account to empty when it's self-destructed https://github.com/bluealloy/revm/blob/1fe91d520410fb78318c2702f06262ca09ac980b/crates/context/src/journaled_state.rs#L610-L626

@shekhirin shekhirin added C-bug An unexpected or incorrect behavior A-trie Related to Merkle Patricia Trie implementation labels Dec 5, 2024
@shekhirin shekhirin marked this pull request as draft December 6, 2024 11:06
@shekhirin shekhirin marked this pull request as ready for review December 6, 2024 12:31
@shekhirin shekhirin requested a review from rkrasiuk December 6, 2024 13:14
@shekhirin shekhirin added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit e29b4ee Dec 6, 2024
41 checks passed
@shekhirin shekhirin deleted the alexey/trie-self-destruct branch December 6, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trie Related to Merkle Patricia Trie implementation C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants