lnwallet: fix ChanReserve calculation in createTestChannels to be non-random

This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-26 14:08:58 -06:00
1 parent 7d3e1308e4
commit 807784a1c4
1 file changed
+2 -2
+2 -2
View File
@@ -230,7 +230,7 @@ func createTestChannels(revocationWindow int) (*LightningChannel, *LightningChan
ChannelConstraints: channeldb.ChannelConstraints{
DustLimit: aliceDustLimit,
MaxPendingAmount: lnwire.MilliSatoshi(rand.Int63()),
ChanReserve: btcutil.Amount(rand.Int63()),
ChanReserve: channelCapacity / 100,
MinHTLC: lnwire.MilliSatoshi(rand.Int63()),
MaxAcceptedHtlcs: uint16(rand.Int31()),
},
@@ -245,7 +245,7 @@ func createTestChannels(revocationWindow int) (*LightningChannel, *LightningChan
ChannelConstraints: channeldb.ChannelConstraints{
DustLimit: bobDustLimit,
MaxPendingAmount: lnwire.MilliSatoshi(rand.Int63()),
ChanReserve: btcutil.Amount(rand.Int63()),
ChanReserve: channelCapacity / 100,
MinHTLC: lnwire.MilliSatoshi(rand.Int63()),
MaxAcceptedHtlcs: uint16(rand.Int31()),
},