lnwallet: fix bug in htlcIsDust, outgoing HTLC on remote commit is htlcSuccess

This commit is contained in:
Olaoluwa Osuntokun 2017-11-30 22:09:35 -08:00
parent d0a356c948
commit 4bec706b11
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

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