mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 18:27:43 +02:00
multi: pass UpdateAddHtlc
message custom records to invoice modifier
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user