multi: pass UpdateAddHtlc message custom records to invoice modifier
This commit is contained in:
1 parent
83923c7f33
commit
bbae7148aa
11 files changed
+481
-354
No files matched your search
@@ -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