Browse Source
Fix transition to `CommitFinality` from `PendingCommit`
upload-correct-windows-binary
Daniel Karzel
3 years ago
No known key found for this signature in database
GPG Key ID: 30C3FC2E438ADB6E
1 changed files with
2 additions and
2 deletions
-
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 { |
|
|
|