lnwallet: add TODO to properly roll dust outputs into initiator's paid fee

This commit is contained in:
Olaoluwa Osuntokun committed 2017-05-16 19:02:52 -07:00
1 parent 4ba01bb558
commit 82f591dbab
1 file changed
+4
+4
View File
@@ -1283,6 +1283,10 @@ func (lc *LightningChannel) fetchCommitmentView(remoteChain bool,
// Determine how many current HTLCs are over the dust limit, and should
// be counted for the purpose of fee calculation.
// TODO(roasbeef): dust outputs need to be counted towards fees paid
// * tally in separate accumulator, subtract from fee amount
// * when dumping fees back into initiator output, only dumb explicit
// fee
var dustLimit btcutil.Amount
if remoteChain {
dustLimit = lc.channelState.TheirDustLimit