Browse Source

Add attestation to `PendingOpen` in case we receive attestation in that state

temporary-fast-timelocks
Daniel Karzel 3 years ago
parent
commit
94b3a35abd
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 2
      daemon/src/model/cfd.rs

2
daemon/src/model/cfd.rs

@ -732,7 +732,7 @@ impl Cfd {
}
}
CfdStateChangeEvent::OracleAttestation(attestation) => match self.state.clone() {
CfdState::Open { dlc, .. } => CfdState::Open {
CfdState::PendingOpen { dlc, .. } | CfdState::Open { dlc, .. } => CfdState::Open {
common: CfdStateCommon {
transition_timestamp: SystemTime::now(),
},

Loading…
Cancel
Save