From d30cba1089663ee96f435e9fd6e433b00cf284ca Mon Sep 17 00:00:00 2001 From: George Tsagkarelis Date: Fri, 13 Dec 2024 11:06:47 +0100 Subject: [PATCH] contractcourt: include custom records on replayed htlc When notifying the invoice registry for an exit hop htlc we also want to include its custom records. The channelLink, the other caller of this method, already populates this field. So we make sure the contest resolver does so too. --- contractcourt/htlc_incoming_contest_resolver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contractcourt/htlc_incoming_contest_resolver.go b/contractcourt/htlc_incoming_contest_resolver.go index 6bda4e398..9c93b7617 100644 --- a/contractcourt/htlc_incoming_contest_resolver.go +++ b/contractcourt/htlc_incoming_contest_resolver.go @@ -308,7 +308,8 @@ func (h *htlcIncomingContestResolver) Resolve( resolution, err := h.Registry.NotifyExitHopHtlc( h.htlc.RHash, h.htlc.Amt, h.htlcExpiry, currentHeight, - circuitKey, hodlQueue.ChanIn(), nil, payload, + circuitKey, hodlQueue.ChanIn(), h.htlc.CustomRecords, + payload, ) if err != nil { return nil, err