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.
This commit is contained in:
George Tsagkarelis
2024-12-13 11:06:47 +01:00
parent bb9c680a48
commit 231dd6b464

View File

@@ -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