Skip to content

Commit a45faec

Browse files
Revert "change interrupt time"
This reverts commit d570cec.
1 parent f9e682f commit a45faec

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

crates/blockchain-tree/src/chain.rs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)