mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix(trie): delete self destructed accounts from sparse trie (#13168)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user