You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
585 B
21 lines
585 B
package invoices |
|
|
|
import ( |
|
"github.com/lightningnetwork/lnd/record" |
|
) |
|
|
|
// Payload abstracts access to any additional fields provided in the final hop's |
|
// TLV onion payload. |
|
type Payload interface { |
|
// MultiPath returns the record corresponding the option_mpp parsed from |
|
// 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 |
|
}
|
|
|