routing: set expiry on initial outgoing HTLC using total time lock

This commit is contained in:
Olaoluwa Osuntokun 2017-06-16 22:35:06 +02:00
parent 62cd6ee046
commit dfd37df0ed
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -1002,6 +1002,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *Route
// payment through the network, starting with the first-hop.
htlcAdd := &lnwire.UpdateAddHTLC{
Amount: route.TotalAmount,
Expiry: route.TotalTimeLock,
PaymentHash: payment.PaymentHash,
}
copy(htlcAdd.OnionBlob[:], sphinxPacket)