routerrpc: pass in probability source
This commit is contained in:
parent
b4bf4b2906
commit
d33f87493e
@ -320,11 +320,13 @@ func (s *Server) EstimateRouteFee(ctx context.Context,
|
|||||||
// that target amount, we'll only request a single route. Set a
|
// that target amount, we'll only request a single route. Set a
|
||||||
// restriction for the default CLTV limit, otherwise we can find a route
|
// restriction for the default CLTV limit, otherwise we can find a route
|
||||||
// that exceeds it and is useless to us.
|
// that exceeds it and is useless to us.
|
||||||
|
mc := s.cfg.RouterBackend.MissionControl
|
||||||
route, err := s.cfg.Router.FindRoute(
|
route, err := s.cfg.Router.FindRoute(
|
||||||
s.cfg.RouterBackend.SelfNode, destNode, amtMsat,
|
s.cfg.RouterBackend.SelfNode, destNode, amtMsat,
|
||||||
&routing.RestrictParams{
|
&routing.RestrictParams{
|
||||||
FeeLimit: feeLimit,
|
FeeLimit: feeLimit,
|
||||||
CltvLimit: s.cfg.RouterBackend.MaxTotalTimelock,
|
CltvLimit: s.cfg.RouterBackend.MaxTotalTimelock,
|
||||||
|
ProbabilitySource: mc.GetProbability,
|
||||||
}, nil, nil, s.cfg.RouterBackend.DefaultFinalCltvDelta,
|
}, nil, nil, s.cfg.RouterBackend.DefaultFinalCltvDelta,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user