From 9e825e6c0fab499ce77f1504db1e324bacc12fd7 Mon Sep 17 00:00:00 2001 From: Bjarne Magnussen Date: Wed, 19 Aug 2020 11:54:19 +0200 Subject: [PATCH] chanfunding: assure logic for dust output Without this change the fee for the test case is above 20% and hence the error could be caught by the high-fee logic instead. --- lnwallet/chanfunding/coin_select_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnwallet/chanfunding/coin_select_test.go b/lnwallet/chanfunding/coin_select_test.go index 67b249768..38a1a7e1d 100644 --- a/lnwallet/chanfunding/coin_select_test.go +++ b/lnwallet/chanfunding/coin_select_test.go @@ -250,7 +250,7 @@ func TestCoinSelectSubtractFees(t *testing.T) { { TxOut: wire.TxOut{ PkScript: p2wkhScript, - Value: int64(fundingFee(feeRate, 1, false) + dust), + Value: int64(fundingFee(feeRate, 1, false) + dustLimit), }, }, },