File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
crates/engine/tree/src/tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments