mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-28 22:52:33 +02:00
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:
@@ -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