routing: query bandwidth hints before each payment attempt

Previously the bandwidth hints were only queried once per payment. This
did not allow for concurrent payments changing channel balances.
This commit is contained in:
Joost Jager committed 2019-08-17 10:24:07 +02:00
1 parent 67e40d4433
commit e7a457f1ce
3 files changed
+27 -15

No files matched your search

+5
View File
@@ -41,6 +41,11 @@ func TestRequestRoute(t *testing.T) {
}
session := &paymentSession{
getBandwidthHints: func() (map[uint64]lnwire.MilliSatoshi,
error) {
return nil, nil
},
sessionSource: sessionSource,
pathFinder: findPath,
}