mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(trie): include destroyed accounts in account prefix set (#4126)
This commit is contained in:
@ -1435,9 +1435,8 @@ impl<'this, TX: DbTxMut<'this> + DbTx<'this>> HashingWriter for DatabaseProvider
|
||||
let accounts = self.basic_accounts(lists)?;
|
||||
let hashed_addresses = self.insert_account_for_hashing(accounts)?;
|
||||
for (hashed_address, account) in hashed_addresses {
|
||||
if account.is_some() {
|
||||
account_prefix_set.insert(Nibbles::unpack(hashed_address));
|
||||
} else {
|
||||
account_prefix_set.insert(Nibbles::unpack(hashed_address));
|
||||
if account.is_none() {
|
||||
destroyed_accounts.insert(hashed_address);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user