htlcswitch: report incoming htlc time lock with FinalIncorrectCltvExpiry

Previously the time lock in the onion payload was reported. This is no
new information to the sender.
This commit is contained in:
Joost Jager 2019-06-25 14:55:23 +02:00
parent 45b3c647f7
commit 922f133fd2
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -2856,9 +2856,7 @@ func (l *channelLink) processExitHop(pd *lnwallet.PaymentDescriptor,
"time-lock: expected %v, got %v",
pd.RHash[:], pd.Timeout, fwdInfo.OutgoingCTLV)
failure := lnwire.NewFinalIncorrectCltvExpiry(
fwdInfo.OutgoingCTLV,
)
failure := lnwire.NewFinalIncorrectCltvExpiry(pd.Timeout)
l.sendHTLCError(pd.HtlcIndex, failure, obfuscator, pd.SourceRef)
return true, nil