lnwallet: account for second-level HTLC fee in TestChannelBalanceDustLimit

This commit is contained in:
Olaoluwa Osuntokun 2017-07-31 20:50:37 -07:00
parent 4aacf2b51d
commit 8c6a83a67d
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -1136,6 +1136,7 @@ func TestChannelBalanceDustLimit(t *testing.T) {
dustLimit := aliceChannel.channelState.LocalChanCfg.DustLimit
aliceBalance := aliceChannel.channelState.LocalBalance
htlcAmount := aliceBalance - (defaultFee + dustLimit + 100)
htlcAmount += htlcSuccessFee(aliceChannel.channelState.FeePerKw)
htlc, preimage := createHTLC(0, htlcAmount)
if _, err := aliceChannel.AddHTLC(htlc); err != nil {