multi: pass UpdateAddHtlc message custom records to invoice modifier

This commit is contained in:
ffranr
2024-05-08 18:17:05 +01:00
committed by Oliver Gugger
parent 83923c7f33
commit bbae7148aa
11 changed files with 481 additions and 354 deletions

View File

@@ -547,6 +547,11 @@ type InvoiceHTLC struct {
// the htlc.
CustomRecords record.CustomSet
// WireCustomRecords contains the custom key/value pairs that were only
// included in p2p wire message of the HTLC and not in the onion
// payload.
WireCustomRecords lnwire.CustomRecords
// AMP encapsulates additional data relevant to AMP HTLCs. This includes
// the AMP onion record, in addition to the HTLC's payment hash and
// preimage since these are unique to each AMP HTLC, and not the invoice
@@ -566,6 +571,7 @@ func (h *InvoiceHTLC) Copy() *InvoiceHTLC {
result.CustomRecords[k] = v
}
result.WireCustomRecords = h.WireCustomRecords.Copy()
result.AMP = h.AMP.Copy()
return &result