invoices: expose AMPRecord() method on Payload

This commit is contained in:
Conner Fromknecht committed 2021-03-03 16:26:39 -08:00
1 parent 055db6b9ac
commit 464dff09ac
5 files changed
+24 -2

No files matched your search

+4
View File
@@ -11,6 +11,10 @@ type Payload interface {
// the onion payload.
MultiPath() *record.MPP
// AMPRecord returns the record corresponding to the option_amp record
// parsed from the onion payload.
AMPRecord() *record.AMP
// CustomRecords returns the custom tlv type records that were parsed
// from the payload.
CustomRecords() record.CustomSet