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

This commit is contained in:
Alexey Shekhirin
2024-12-06 14:02:03 +00:00
committed by GitHub
parent cb3e9f8441
commit e29b4eec48

View File

@ -265,7 +265,7 @@ where
trace!(target: "engine::root", ?address, ?hashed_address, "Adding account to state update");
let destroyed = account.is_selfdestructed();
let info = if account.is_empty() { None } else { Some(account.info.into()) };
let info = if destroyed { None } else { Some(account.info.into()) };
hashed_state_update.accounts.insert(hashed_address, info);
let mut changed_storage_iter = account