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 committed 2019-08-08 11:04:21 +02:00
1 parent 45b3c647f7
commit 922f133fd2
1 file changed
+1 -3
+1 -3
View File
@@ -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