lnwallet: account for second-level HTLC fee in TestChannelBalanceDustLimit
This commit is contained in:
parent
4aacf2b51d
commit
8c6a83a67d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user