routing+routerrpc+lnrpc: add option to use mc in queryroutes

A boolean flag is added to the QueryRoutes rpc that allows feeding
mission control probabilities into path finding.
This commit is contained in:
Joost Jager
2019-06-19 08:29:44 +02:00
parent 7f4c42847c
commit fc337cd34f
5 changed files with 563 additions and 500 deletions

View File

@@ -167,7 +167,13 @@ func (r *RouterBackend) QueryRoutes(ctx context.Context,
return 0
}
return 1
if !in.UseMissionControl {
return 1
}
return r.MissionControl.GetEdgeProbability(
node, edge, amt,
)
},
}