Update UpdatedProcess with UserDiff
This commit is contained in:
parent
8f089fd3db
commit
1bf8d91991
@ -106,8 +106,9 @@ pub struct UserDiff {
|
|||||||
pub struct UpdatedProcess {
|
pub struct UpdatedProcess {
|
||||||
pub commitment_tx: OutPoint,
|
pub commitment_tx: OutPoint,
|
||||||
pub current_process: Process,
|
pub current_process: Process,
|
||||||
pub new_state: Option<ProcessState>,
|
pub new_diffs: Vec<UserDiff>, // All diffs should have the same new_state_merkle_root
|
||||||
pub modified_state: Option<(ProcessState, ProcessState)>, // first the previous state, then the current one
|
pub modified_state: Option<String>, // 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)]
|
#[derive(Debug, PartialEq, Tsify, Serialize, Deserialize, Default)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user