From 2216c8a8ba5f780cd3fca66cf36a915aa1cec0a5 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com> Date: Wed, 29 Jan 2025 21:19:34 +0000 Subject: [PATCH] fix(root): do not re-calculate targets for sparse trie update (#14074) --- crates/engine/tree/src/tree/root.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/engine/tree/src/tree/root.rs b/crates/engine/tree/src/tree/root.rs index b18dd9e99c..dc5ebbc1ae 100644 --- a/crates/engine/tree/src/tree/root.rs +++ b/crates/engine/tree/src/tree/root.rs @@ -772,9 +772,6 @@ where "Updating sparse trie" ); - // TODO: alexey to remind me why we are doing this - update.targets = get_proof_targets(&update.state, &update.targets); - let elapsed = update_sparse_trie(&mut trie, update).map_err(|e| { ParallelStateRootError::Other(format!("could not calculate state root: {e:?}")) })?;