From 63eda028846acdc15f7139bdecb746c7ca0a5102 Mon Sep 17 00:00:00 2001 From: Roman Krasiuk Date: Tue, 17 Dec 2024 17:15:46 +0200 Subject: [PATCH] actually handle event lol --- crates/engine/tree/src/tree/root.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/crates/engine/tree/src/tree/root.rs b/crates/engine/tree/src/tree/root.rs index 6db9133e7959..91eff296a6bf 100644 --- a/crates/engine/tree/src/tree/root.rs +++ b/crates/engine/tree/src/tree/root.rs @@ -326,7 +326,7 @@ where } /// Handles request for proof prefetch. - fn prefetch_proof( + fn on_prefetch_proof( scope: &rayon::Scope<'env>, view: ConsistentDbView, input: Arc, @@ -517,6 +517,15 @@ where len = targets.len(), "Prefetching proofs" ); + Self::on_prefetch_proof( + scope, + self.config.consistent_view.clone(), + self.config.input.clone(), + targets, + &mut self.fetched_proof_targets, + self.proof_sequencer.next_sequence(), + self.tx.clone(), + ); } StateRootMessage::StateUpdate(update) => { if updates_received == 0 {