Skip to content

Commit 3f7a40e

Browse files
committed
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.
1 parent ff14847 commit 3f7a40e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contractcourt/htlc_incoming_contest_resolver.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,8 @@ func (h *htlcIncomingContestResolver) Resolve(
308308

309309
resolution, err := h.Registry.NotifyExitHopHtlc(
310310
h.htlc.RHash, h.htlc.Amt, h.htlcExpiry, currentHeight,
311-
circuitKey, hodlQueue.ChanIn(), nil, payload,
311+
circuitKey, hodlQueue.ChanIn(), h.htlc.CustomRecords,
312+
payload,
312313
)
313314
if err != nil {
314315
return nil, err

0 commit comments

Comments
 (0)