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
2019-08-17 09:58:36 +02:00
parent 67e40d4433
commit e7a457f1ce
3 changed files with 27 additions and 15 deletions

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,
}