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:
3 files changed
+27
-15
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user