routing: add cltv limit to payment session

This commit is contained in:
Joost Jager
2019-02-13 11:53:32 +01:00
parent e3bb3d46a2
commit 06cd64cbbc
3 changed files with 75 additions and 0 deletions

View File

@@ -1523,6 +1523,10 @@ type LightningPayment struct {
// if there isn't a route with lower fees than this limit.
FeeLimit lnwire.MilliSatoshi
// CltvLimit is the maximum time lock that is allowed for attempts to
// complete this payment.
CltvLimit *uint32
// PaymentHash is the r-hash value to use within the HTLC extended to
// the first hop.
PaymentHash [32]byte