htlcswitch: merge copy htlc custom records

This commit is contained in:
Carla Kirk-Cohen committed 2024-11-07 13:46:54 -05:00
1 parent 0899077fb5
commit 7896bef2a0
4 files changed
+13 -18

No files matched your search

+6 -3
View File
@@ -715,9 +715,12 @@ func (f *interceptedForward) ResumeModified(
htlc.Amount = amount
})
if len(validatedRecords) > 0 {
htlc.CustomRecords = validatedRecords
}
// Merge custom records with any validated records that were
// added in the modify request, overwriting any existing values
// with those supplied in the modifier API.
htlc.CustomRecords = htlc.CustomRecords.MergedCopy(
validatedRecords,
)
case *lnwire.UpdateFulfillHTLC:
if len(validatedRecords) > 0 {