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:
4 files changed
+11
-21
No files matched your search
@@ -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,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user