routing: remove sourceNode from routingGraph interface
In this commit, we further reduce the routingGraph interface and this time we make it more node-agnostic so that it can be backed by any graph and not one with a concept of "sourceNode".
This commit is contained in:
8 files changed
+24
-32
No files matched your search
+3
-2
@@ -2148,8 +2148,9 @@ func (r *ChannelRouter) FindRoute(req *RouteRequest) (*route.Route, float64,
|
||||
bandwidthHints: bandwidthHints,
|
||||
graph: r.cachedGraph,
|
||||
},
|
||||
req.Restrictions, &r.cfg.PathFindingConfig, req.Source,
|
||||
req.Target, req.Amount, req.TimePreference, finalHtlcExpiry,
|
||||
req.Restrictions, &r.cfg.PathFindingConfig,
|
||||
r.selfNode.PubKeyBytes, req.Source, req.Target, req.Amount,
|
||||
req.TimePreference, finalHtlcExpiry,
|
||||
)
|
||||
if err != nil {
|
||||
return nil, 0, err
|
||||
|
||||
Reference in new issue
Block a user