We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
deduplicate_and_update_cached
1 parent bfc69c7 commit 84a4cd3Copy full SHA for 84a4cd3
1 file changed
crates/trie/prefetch/src/prefetch.rs
@@ -117,11 +117,9 @@ impl TriePrefetch {
117
let hashed_state = HashedPostState::from_state(state);
118
let mut new_hashed_state = HashedPostState::default();
119
120
- // deduplicate accounts if their keys are not present in storages
+ // deduplicate accounts
121
for (address, account) in &hashed_state.accounts {
122
- if !hashed_state.storages.contains_key(address) &&
123
- !self.cached_accounts.contains_key(address)
124
- {
+ if self.cached_accounts.contains_key(address) {
125
self.cached_accounts.insert(*address, true);
126
new_hashed_state.accounts.insert(*address, *account);
127
}
0 commit comments