From 3f7a40e46dc195bfb146f99ad108c61fcd3b521c 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 e5be63cbf7..ee526dfff3 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