routing: abstract path finding interface

This commit is contained in:
Joost Jager committed 2019-03-19 10:36:48 +01:00
1 parent 6006549ed5
commit e3bb3d46a2
3 files changed
+10 -1

No files matched your search

+3 -1
View File
@@ -33,6 +33,8 @@ type paymentSession struct {
haveRoutes bool
preBuiltRoutes []*Route
pathFinder pathFinder
}
// ReportVertexFailure adds a vertex to the graph prune view after a client
@@ -141,7 +143,7 @@ func (p *paymentSession) RequestRoute(payment *LightningPayment,
// Taking into account this prune view, we'll attempt to locate a path
// to our destination, respecting the recommendations from
// missionControl.
path, err := findPath(
path, err := p.pathFinder(
&graphParams{
graph: p.mc.graph,
additionalEdges: p.additionalEdges,