diff --git a/coprocessor/fhevm-engine/scheduler/src/dfg.rs b/coprocessor/fhevm-engine/scheduler/src/dfg.rs
index e2823c59fd..a4199531e7 100644
--- a/coprocessor/fhevm-engine/scheduler/src/dfg.rs
+++ b/coprocessor/fhevm-engine/scheduler/src/dfg.rs
@@ -505,7 +505,10 @@ impl DFComponentGraph {
.node_weight_mut(dependent_tx_index)
.ok_or(SchedulerError::DataflowGraphError)?;
dependent_tx.inputs.entry(handle.to_vec()).and_modify(|v| {
- *v = Some(DFGTxInput::Value((result.ct.clone(), result.is_allowed)))
+ *v = Some(DFGTxInput::Compressed((
+ result.compressed_ct.clone(),
+ result.is_allowed,
+ )))
});
}
} else {
@@ -524,14 +527,7 @@ impl DFComponentGraph {
self.results.push(DFGTxResult {
transaction_id: producer_tx.transaction_id.clone(),
handle: handle.to_vec(),
- compressed_ct: result.and_then(|rok| {
- rok.compressed_ct
- .map(|cct| (cct.0, cct.1))
- .ok_or_else(|| {
- error!(target: "scheduler", {handle = ?hex::encode(handle) }, "Missing compressed ciphertext in task result");
- SchedulerError::SchedulerError.into()
- })
- }),
+ compressed_ct: result.map(|rok| rok.compressed_ct),
});
}
}
@@ -615,7 +611,7 @@ impl std::fmt::Debug for DFComponentGraph {
pub struct DFGResult {
pub handle: Handle,
- pub result: Result