From 4bec706b11b79be93bae29fa363eb90cb9390994 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 30 Nov 2017 22:09:35 -0800 Subject: [PATCH] lnwallet: fix bug in htlcIsDust, outgoing HTLC on remote commit is htlcSuccess --- lnwallet/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwallet/channel.go b/lnwallet/channel.go index 1eb1b0f10..067e73752 100644 --- a/lnwallet/channel.go +++ b/lnwallet/channel.go @@ -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