Skip to content

Commit 83ea1d1

Browse files
committed
add comment
1 parent 8b7ce12 commit 83ea1d1

File tree

1 file changed

+4
-1
lines changed
  • crates/engine/tree/src/tree

1 file changed

+4
-1
lines changed

crates/engine/tree/src/tree/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,10 @@ where
21682168
// Use state root task only if:
21692169
// 1. No persistence is in progress
21702170
// 2. Config allows it
2171-
// 3. No ancestors with missing trie updates
2171+
// 3. No ancestors with missing trie updates. If any exist, it will mean that every state
2172+
// root task proof calculation will include a lot of unrelated paths in the prefix sets.
2173+
// It's cheaper to run a parallel state root that does one walk over trie tables while
2174+
// accounting for the prefix sets.
21722175
let use_state_root_task = run_parallel_state_root &&
21732176
self.config.use_state_root_task() &&
21742177
!self.has_ancestors_with_missing_trie_updates(block.sealed_header());

0 commit comments

Comments
 (0)