input: remove duplicate commit weight constant

This commit is contained in:
Johan T. Halseth committed 2020-01-06 12:08:25 +01:00
1 parent a56ed72bd7
commit 3711597fef
5 files changed
+12 -18

No files matched your search

+1 -1
View File
@@ -287,7 +287,7 @@ func (cb *CommitmentBuilder) createUnsignedCommitmentTx(ourBalance,
// on its total weight. Once we have the total weight, we'll multiply
// by the current fee-per-kw, then divide by 1000 to get the proper
// fee.
totalCommitWeight := input.CommitWeight + (input.HtlcWeight * numHTLCs)
totalCommitWeight := input.CommitWeight + (input.HTLCWeight * numHTLCs)
// With the weight known, we can now calculate the commitment fee,
// ensuring that we account for any dust outputs trimmed above.