File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
crates/blockchain-tree/src Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,10 @@ impl AppendableChain {
263263 vec ! [ snapshot. unwrap_or_default( ) ] ,
264264 ) ;
265265
266+ // stop the prefetch task.
267+ #[ cfg( feature = "prefetch" ) ]
268+ let _ = interrupt_tx. send ( ( ) ) ;
269+
266270 // check state root if the block extends the canonical chain __and__ if state root
267271 // validation was requested.
268272 if block_validation_kind. is_exhaustive ( ) {
@@ -295,17 +299,8 @@ impl AppendableChain {
295299 "Validated state root"
296300 ) ;
297301
298- // stop the prefetch task.
299- #[ cfg( feature = "prefetch" ) ]
300- let _ = interrupt_tx. send ( ( ) ) ;
301-
302302 Ok ( ( initial_execution_outcome, trie_updates) )
303303 } else {
304-
305- // stop the prefetch task.
306- #[ cfg( feature = "prefetch" ) ]
307- let _ = interrupt_tx. send ( ( ) ) ;
308-
309304 Ok ( ( initial_execution_outcome, None ) )
310305 }
311306 }
You can’t perform that action at this time.
0 commit comments