From 60e4b2cee0ca6bbafffab1c683722183bf342fc5 Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Fri, 1 Oct 2021 18:29:47 +1000 Subject: [PATCH] Fix transition to `CommitFinality` from `PendingCommit` --- daemon/src/model/cfd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/model/cfd.rs b/daemon/src/model/cfd.rs index fd6c7a0..33aef88 100644 --- a/daemon/src/model/cfd.rs +++ b/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 {