diff --git a/daemon/src/model/cfd.rs b/daemon/src/model/cfd.rs index 617dc97..26e7643 100644 --- a/daemon/src/model/cfd.rs +++ b/daemon/src/model/cfd.rs @@ -741,7 +741,14 @@ impl Cfd { } } CfdStateChangeEvent::OracleAttestation(attestation) => match self.state.clone() { - CfdState::PendingOpen { dlc, .. } | CfdState::Open { dlc, .. } => CfdState::Open { + CfdState::PendingOpen { dlc, .. } => CfdState::PendingOpen { + common: CfdStateCommon { + transition_timestamp: SystemTime::now(), + }, + dlc, + attestation: Some(attestation), + }, + CfdState::Open { dlc, .. } => CfdState::Open { common: CfdStateCommon { transition_timestamp: SystemTime::now(), },