invoices: store custom records in invoice database

This commit is contained in:
Joost Jager committed 2019-12-10 06:54:24 +01:00
1 parent 37258c414c
commit 5f4bd136cd
10 files changed
+725 -584

No files matched your search

+8 -1
View File
@@ -1,6 +1,9 @@
package invoices
import "github.com/lightningnetwork/lnd/record"
import (
"github.com/lightningnetwork/lnd/htlcswitch/hop"
"github.com/lightningnetwork/lnd/record"
)
// Payload abstracts access to any additional fields provided in the final hop's
// TLV onion payload.
@@ -8,4 +11,8 @@ type Payload interface {
// MultiPath returns the record corresponding the option_mpp parsed from
// the onion payload.
MultiPath() *record.MPP
// CustomRecords returns the custom tlv type records that were parsed
// from the payload.
CustomRecords() hop.CustomRecordSet
}