From f6d357e122443654824cc633e9b48361fdff76cb Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 7 Feb 2018 22:36:34 -0500 Subject: [PATCH] breacharbiter tests: set MinHtlc=0 during tests --- breacharbiter_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/breacharbiter_test.go b/breacharbiter_test.go index eebc9875..7502415a 100644 --- a/breacharbiter_test.go +++ b/breacharbiter_test.go @@ -1268,8 +1268,8 @@ func createInitChannels(revocationWindow int) (*lnwallet.LightningChannel, *lnwa ChannelConstraints: channeldb.ChannelConstraints{ DustLimit: aliceDustLimit, MaxPendingAmount: lnwire.MilliSatoshi(rand.Int63()), - ChanReserve: btcutil.Amount(rand.Int63()), - MinHTLC: lnwire.MilliSatoshi(rand.Int63()), + ChanReserve: 0, + MinHTLC: 0, MaxAcceptedHtlcs: uint16(rand.Int31()), }, CsvDelay: uint16(csvTimeoutAlice), @@ -1283,8 +1283,8 @@ func createInitChannels(revocationWindow int) (*lnwallet.LightningChannel, *lnwa ChannelConstraints: channeldb.ChannelConstraints{ DustLimit: bobDustLimit, MaxPendingAmount: lnwire.MilliSatoshi(rand.Int63()), - ChanReserve: btcutil.Amount(rand.Int63()), - MinHTLC: lnwire.MilliSatoshi(rand.Int63()), + ChanReserve: 0, + MinHTLC: 0, MaxAcceptedHtlcs: uint16(rand.Int31()), }, CsvDelay: uint16(csvTimeoutBob),