routing: move default cltv assignment out of router

This commit lifts default setting up to the rpc server level, in line
with other payment defaults.
This commit is contained in:
Joost Jager committed 2019-06-05 12:41:43 +02:00
1 parent afd86763ac
commit 19d5f8f82c
4 files changed
+11 -21

No files matched your search

+1 -1
View File
@@ -222,7 +222,7 @@ func (s *Server) SendPayment(ctx context.Context,
Amount: *payReq.MilliSat,
FeeLimit: lnwire.MilliSatoshi(req.FeeLimitSat),
PaymentHash: *payReq.PaymentHash,
FinalCLTVDelta: &finalDelta,
FinalCLTVDelta: finalDelta,
PayAttemptTimeout: time.Second * time.Duration(req.TimeoutSeconds),
RouteHints: payReq.RouteHints,
}