mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 01:12:56 +02:00
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:
@@ -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,
|
||||
)
|
||||
},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user