diff --git a/src/DotNetLightning.Core/Channel/Channel.fs b/src/DotNetLightning.Core/Channel/Channel.fs index 653f03d18..d0c4b00d8 100644 --- a/src/DotNetLightning.Core/Channel/Channel.fs +++ b/src/DotNetLightning.Core/Channel/Channel.fs @@ -1168,9 +1168,7 @@ and Channel = { let remoteCommit = match remoteNextCommitInfo with | Some (RemoteNextCommitInfo.Waiting nextRemoteCommit) -> nextRemoteCommit - | Some (RemoteNextCommitInfo.Revoked _info) -> savedChannelState.RemoteCommit - // TODO: This could return a proper error, or report the full balance - | None -> failwith "funding is not locked" + | _ -> savedChannelState.RemoteCommit let reducedRes = remoteCommit.Spec.Reduce( savedChannelState.RemoteChanges.ACKed,