mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
lnwallet: fix bug in htlcIsDust, outgoing HTLC on remote commit is htlcSuccess
This commit is contained in:
parent
d0a356c948
commit
4bec706b11
@ -2217,7 +2217,7 @@ func htlcIsDust(incoming, ourCommit bool,
|
||||
// we'll be using an HTLC success transaction as they're the receiver
|
||||
// of this HTLC.
|
||||
case !incoming && !ourCommit:
|
||||
htlcFee = htlcTimeoutFee(feePerKw)
|
||||
htlcFee = htlcSuccessFee(feePerKw)
|
||||
}
|
||||
|
||||
return (htlcAmt - htlcFee) < dustLimit
|
||||
|
Loading…
Reference in New Issue
Block a user