Browse Source

Fix transition to `CommitFinality` from `PendingCommit`

upload-correct-windows-binary
Daniel Karzel 3 years ago
parent
commit
60e4b2cee0
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 4
      daemon/src/model/cfd.rs

4
daemon/src/model/cfd.rs

@ -475,9 +475,9 @@ impl Cfd {
}
}
monitor::Event::CommitFinality(_) => {
let dlc = if let Open { dlc, .. } = self.state.clone() {
let dlc = if let PendingCommit { dlc, .. } = self.state.clone() {
dlc
} else if let PendingOpen { dlc, .. } = self.state.clone() {
} else if let PendingOpen { dlc, .. } | Open { dlc, .. } = self.state.clone() {
tracing::debug!(%order_id, "Was in unexpected state {}, jumping ahead to OpenCommitted", self.state);
dlc
} else {

Loading…
Cancel
Save