routing: add time_pref parameter to queryroutes and sendpayment

This commit is contained in:
Joost Jager committed 2022-04-13 20:26:46 +02:00
1 parent 269a8e74d3
commit ba5abdc090
17 files changed
+2034 -1918

No files matched your search

+1 -1
View File
@@ -363,7 +363,7 @@ func (s *Server) EstimateRouteFee(ctx context.Context,
// that exceeds it and is useless to us.
mc := s.cfg.RouterBackend.MissionControl
route, err := s.cfg.Router.FindRoute(
s.cfg.RouterBackend.SelfNode, destNode, amtMsat,
s.cfg.RouterBackend.SelfNode, destNode, amtMsat, 0,
&routing.RestrictParams{
FeeLimit: feeLimit,
CltvLimit: s.cfg.RouterBackend.MaxTotalTimelock,