From 1bf8d919911fa8276c882c6c5d3660d7e30b2042 Mon Sep 17 00:00:00 2001 From: Sosthene Date: Wed, 11 Dec 2024 23:30:14 +0100 Subject: [PATCH] Update UpdatedProcess with UserDiff --- src/api.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api.rs b/src/api.rs index 1af5849..b844315 100644 --- a/src/api.rs +++ b/src/api.rs @@ -106,8 +106,9 @@ pub struct UserDiff { pub struct UpdatedProcess { pub commitment_tx: OutPoint, pub current_process: Process, - pub new_state: Option, - pub modified_state: Option<(ProcessState, ProcessState)>, // first the previous state, then the current one + pub new_diffs: Vec, // All diffs should have the same new_state_merkle_root + pub modified_state: Option, // basically when we add/receive validation proofs for a state + // I think we should never have both new_state and modified_state } #[derive(Debug, PartialEq, Tsify, Serialize, Deserialize, Default)]