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

This commit is contained in:
Olaoluwa Osuntokun 2017-05-16 19:02:47 -07:00
parent 4ba01bb558
commit 82f591dbab
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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