htlcswitch: ensure payments in TestChannelLinkBidirectionalOneHopPayments aren't dust

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.
This commit is contained in:
Olaoluwa Osuntokun 2017-07-30 14:12:22 -07:00
parent f8e536dff5
commit 1d771eeb1b
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
1 changed files with 1 additions and 1 deletions

View File

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