From 1d771eeb1b7172655259a28770a257710c382a8c Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sun, 30 Jul 2017 14:12:22 -0700 Subject: [PATCH] htlcswitch: ensure payments in TestChannelLinkBidirectionalOneHopPayments aren't dust MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit modifies the TestChannelLinkBidirectionalOneHopPayments test to ensure that each payment sent is safely above the dust threshold. Note that the dust threshold itself is now higher due to the existence of the HTLC covenant transactions which the HTLC values themselves must cover. This change ensure that this test operates under “normal” operation conditions in order to catch any bugs introduced during a major change. --- htlcswitch/link_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index 6bae4f2b5..7272ac89c 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -166,7 +166,7 @@ func TestChannelLinkBidirectionalOneHopPayments(t *testing.T) { n.firstBobChannelLink.ChanID())) } - const amt btcutil.Amount = 10 + const amt btcutil.Amount = 20000 htlcAmt, totalTimelock, hopsForwards := generateHops(amt, n.firstBobChannelLink)