htlcswitch/link_test+test_utils: add max htlc to forwarding policies

This commit is contained in:
Valentine Wallace 2018-12-08 18:14:51 -08:00
parent 675a8b2d9e
commit 833c31eaca

@ -1528,6 +1528,7 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) (
}
globalPolicy = ForwardingPolicy{
MinHTLC: lnwire.NewMSatFromSatoshis(5),
MaxHTLC: lnwire.NewMSatFromSatoshis(chanAmt),
BaseFee: lnwire.NewMSatFromSatoshis(1),
TimeLockDelta: 6,
}
@ -5400,6 +5401,7 @@ func TestHtlcSatisfyPolicy(t *testing.T) {
FwrdingPolicy: ForwardingPolicy{
TimeLockDelta: 20,
MinHTLC: 500,
MaxHTLC: 1000,
BaseFee: 10,
},
FetchLastChannelUpdate: fetchLastChannelUpdate,