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

+5
View File
@@ -39,6 +39,11 @@ const (
RiskFactorBillionths = 15
)
// pathFinder defines the interface of a path finding algorithm.
type pathFinder = func(g *graphParams, r *RestrictParams,
source, target Vertex, amt lnwire.MilliSatoshi) (
[]*channeldb.ChannelEdgePolicy, error)
// Hop represents an intermediate or final node of the route. This naming
// is in line with the definition given in BOLT #4: Onion Routing Protocol.
// The struct houses the channel along which this hop can be reached and