fix(trie): account prefixset unwind (#4130)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Matthias Seitz
2023-08-09 16:33:55 +02:00
committed by GitHub
parent 7ea381f15e
commit 6622f53c41

View File

@ -1779,9 +1779,8 @@ impl<'this, TX: DbTxMut<'this> + DbTx<'this>> BlockExecutionWriter for DatabaseP
// Unwind account hashes. Add changed accounts to account prefix set.
let hashed_addresses = self.unwind_account_hashing(range.clone())?;
for (hashed_address, account) in hashed_addresses {
if account.is_some() {
account_prefix_set.insert(Nibbles::unpack(hashed_address));
} else {
if account.is_none() {
destroyed_accounts.insert(hashed_address);
}
}