routing+lnrpc: add missing query routes parameters

This commit is contained in:
Joost Jager committed 2020-01-14 11:21:31 +01:00
1 parent 9c577f3f57
commit 81bf6e15b3
9 files changed
+825 -626

No files matched your search

+4 -2
View File
@@ -1402,6 +1402,7 @@ type routingMsg struct {
func (r *ChannelRouter) FindRoute(source, target route.Vertex,
amt lnwire.MilliSatoshi, restrictions *RestrictParams,
destCustomRecords record.CustomSet,
routeHints map[route.Vertex][]*channeldb.ChannelEdgePolicy,
finalExpiry ...uint16) (*route.Route, error) {
var finalCLTVDelta uint16
@@ -1444,8 +1445,9 @@ func (r *ChannelRouter) FindRoute(source, target route.Vertex,
path, err := findPath(
&graphParams{
graph: r.cfg.Graph,
bandwidthHints: bandwidthHints,
graph: r.cfg.Graph,
bandwidthHints: bandwidthHints,
additionalEdges: routeHints,
},
restrictions, &r.cfg.PathFindingConfig,
source, target, amt, finalHtlcExpiry,