Skip to content

Commit

Permalink
Remove claimCurrentLocalCommitTxOutputs
Browse files Browse the repository at this point in the history
This function was unfinished and unused.
  • Loading branch information
canndrew committed Dec 18, 2020
1 parent 3658a3b commit 2ef038b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/DotNetLightning.Core/Channel/Channel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -498,18 +498,6 @@ module Channel =
((localClosingFee.Satoshi + remoteClosingFee.Satoshi) / 4L) * 2L
|> Money.Satoshis

let claimCurrentLocalCommitTxOutputs (channelPrivKeys: ChannelPrivKeys,
commitments: Commitments,
commitTx: CommitTx
) =
result {
let commitmentSeed = channelPrivKeys.CommitmentSeed
do! check (commitments.LocalCommit.PublishableTxs.CommitTx.Value.GetTxId()) (=) (commitTx.Value.GetTxId()) "txid mismatch. provided txid (%A) does not match current local commit tx (%A)"
let _localPerCommitmentPoint =
commitmentSeed.DerivePerCommitmentPoint commitments.LocalCommit.Index
failwith "TODO"
}

let makeChannelReestablish (channelPrivKeys: ChannelPrivKeys)
(commitments: Commitments)
: Result<ChannelEvent list, ChannelError> =
Expand Down

0 comments on commit 2ef038b

Please sign in to comment.