multi: move bandwidth hints behind interface

This commit is contained in:
carla committed 2021-10-19 09:50:49 +02:00
1 parent e6c65f1cbd
commit 45de686d35
15 files changed
+369 -134

No files matched your search

+4 -8
View File
@@ -116,10 +116,8 @@ func TestUpdateAdditionalEdge(t *testing.T) {
// Create the paymentsession.
session, err := newPaymentSession(
payment,
func() (map[uint64]lnwire.MilliSatoshi,
error) {
return nil, nil
func() (bandwidthHints, error) {
return &mockBandwidthHints{}, nil
},
&sessionGraph{},
&MissionControl{},
@@ -196,10 +194,8 @@ func TestRequestRoute(t *testing.T) {
session, err := newPaymentSession(
payment,
func() (map[uint64]lnwire.MilliSatoshi,
error) {
return nil, nil
func() (bandwidthHints, error) {
return &mockBandwidthHints{}, nil
},
&sessionGraph{},
&MissionControl{},