Skip to content

Commit

Permalink
contractcourt: include custom records on replayed htlc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
GeorgeTsagk committed Dec 13, 2024
1 parent ff14847 commit 3f7a40e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contractcourt/htlc_incoming_contest_resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3f7a40e

Please sign in to comment.