htlcswitch/link_test+test_utils: add max htlc to forwarding policies
This commit is contained in:
parent
675a8b2d9e
commit
833c31eaca
@ -1528,6 +1528,7 @@ func newSingleLinkTestHarness(chanAmt, chanReserve btcutil.Amount) (
|
|||||||
}
|
}
|
||||||
globalPolicy = ForwardingPolicy{
|
globalPolicy = ForwardingPolicy{
|
||||||
MinHTLC: lnwire.NewMSatFromSatoshis(5),
|
MinHTLC: lnwire.NewMSatFromSatoshis(5),
|
||||||
|
MaxHTLC: lnwire.NewMSatFromSatoshis(chanAmt),
|
||||||
BaseFee: lnwire.NewMSatFromSatoshis(1),
|
BaseFee: lnwire.NewMSatFromSatoshis(1),
|
||||||
TimeLockDelta: 6,
|
TimeLockDelta: 6,
|
||||||
}
|
}
|
||||||
@ -5400,6 +5401,7 @@ func TestHtlcSatisfyPolicy(t *testing.T) {
|
|||||||
FwrdingPolicy: ForwardingPolicy{
|
FwrdingPolicy: ForwardingPolicy{
|
||||||
TimeLockDelta: 20,
|
TimeLockDelta: 20,
|
||||||
MinHTLC: 500,
|
MinHTLC: 500,
|
||||||
|
MaxHTLC: 1000,
|
||||||
BaseFee: 10,
|
BaseFee: 10,
|
||||||
},
|
},
|
||||||
FetchLastChannelUpdate: fetchLastChannelUpdate,
|
FetchLastChannelUpdate: fetchLastChannelUpdate,
|
||||||
|
Loading…
Reference in New Issue
Block a user