perf(engine): avoid unnecessary B256 copy in get_proof_targets (#20845)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matthias Seitz
2026-01-09 05:57:23 +01:00
committed by GitHub
parent 5433d7a4ac
commit cff7e8be53

View File

@@ -1275,9 +1275,9 @@ fn get_proof_targets(
let mut targets = MultiProofTargets::default();
// first collect all new accounts (not previously fetched)
for &hashed_address in state_update.accounts.keys() {
if !fetched_proof_targets.contains_key(&hashed_address) {
targets.insert(hashed_address, HashSet::default());
for hashed_address in state_update.accounts.keys() {
if !fetched_proof_targets.contains_key(hashed_address) {
targets.insert(*hashed_address, HashSet::default());
}
}