mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-05 02:11:10 +01:00
routing: use routingGraph interface in payment session
Preparation for more test coverage of payment session. The function findPath now has the call signature of the former findPathInternal function.
This commit is contained in:
@@ -111,8 +111,11 @@ func (c *integratedRoutingContext) testPayment(expectedNofAttempts int) {
|
||||
}
|
||||
|
||||
// Find a route.
|
||||
path, err := findPathInternal(
|
||||
nil, bandwidthHints, c.graph,
|
||||
path, err := findPath(
|
||||
&graphParams{
|
||||
graph: c.graph,
|
||||
bandwidthHints: bandwidthHints,
|
||||
},
|
||||
&restrictParams,
|
||||
&c.pathFindingCfg,
|
||||
c.source.pubkey, c.target.pubkey,
|
||||
|
||||
Reference in New Issue
Block a user