mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-28 22:02:29 +02:00
routing: use capacity in pathfinding
Extends the pathfinder with a capacity argument for later usage. In tests, the inserted testCapacity has no effect, but will be used later to estimate reduced probabilities from it.
This commit is contained in:
@@ -710,7 +710,7 @@ func (s *Server) QueryProbability(ctx context.Context,
|
||||
amt := lnwire.MilliSatoshi(req.AmtMsat)
|
||||
|
||||
mc := s.cfg.RouterBackend.MissionControl
|
||||
prob := mc.GetProbability(fromNode, toNode, amt)
|
||||
prob := mc.GetProbability(fromNode, toNode, amt, 0)
|
||||
history := mc.GetPairHistorySnapshot(fromNode, toNode)
|
||||
|
||||
return &QueryProbabilityResponse{
|
||||
|
Reference in New Issue
Block a user