Skip to content

Commit

Permalink
add source
Browse files Browse the repository at this point in the history
  • Loading branch information
fgimenez committed Jan 24, 2025
1 parent 586a8fc commit 93d135c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/engine/tree/src/tree/root.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ struct MultiproofInput<Factory> {
proof_targets: MultiProofTargets,
proof_sequence_number: u64,
state_root_message_sender: Sender<StateRootMessage>,
source: ProofFetchSource,
}

/// Manages concurrent multiproof calculations.
Expand Down Expand Up @@ -382,6 +383,7 @@ where
proof_targets,
proof_sequence_number,
state_root_message_sender,
source,
} = input;
let thread_pool = self.thread_pool.clone();

Expand Down Expand Up @@ -411,6 +413,7 @@ where
targets: proof_targets,
multiproof: proof,
},
source,
}),
));
}
Expand Down Expand Up @@ -538,7 +541,7 @@ where
proof_targets: targets,
proof_sequence_number: self.proof_sequencer.next_sequence(),
state_root_message_sender: self.tx.clone(),
proof_fetch_source: ProofFetchSource::Prefetch,
source: ProofFetchSource::Prefetch,
});
}

Expand All @@ -556,7 +559,7 @@ where
proof_targets,
proof_sequence_number,
state_root_message_sender: self.tx.clone(),
proof_fetch_source: ProofFetchSource::StateUpdate,
source: ProofFetchSource::StateUpdate,
});
}

Expand Down

0 comments on commit 93d135c

Please sign in to comment.