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

-3
View File
@@ -472,9 +472,6 @@ func testPaymentLifecycle(t *testing.T, test paymentLifecycleTestCase,
Payer: payer,
ChannelPruneExpiry: time.Hour * 24,
GraphPruneInterval: time.Hour * 2,
QueryBandwidth: func(c *channeldb.DirectedChannel) lnwire.MilliSatoshi {
return lnwire.NewMSatFromSatoshis(c.Capacity)
},
NextPaymentID: func() (uint64, error) {
next := atomic.AddUint64(&uniquePaymentID, 1)
return next, nil