From 922f133fd273990704966b8e1cb0534804fa592c Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 25 Jun 2019 14:55:23 +0200 Subject: [PATCH] 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. --- htlcswitch/link.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 26a90d0e..f39e41aa 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -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