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
2019-04-18 09:45:21 +02:00
parent afd86763ac
commit 19d5f8f82c
4 changed files with 11 additions and 21 deletions

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,
}