mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
multi: replace NotifyExitHopHtlc eob param with hop.Payload
This commit is contained in:
11
invoices/interface.go
Normal file
11
invoices/interface.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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
|
||||
}
|
||||
@@ -429,7 +429,7 @@ func (i *InvoiceRegistry) LookupInvoice(rHash lntypes.Hash) (channeldb.Invoice,
|
||||
func (i *InvoiceRegistry) NotifyExitHopHtlc(rHash lntypes.Hash,
|
||||
amtPaid lnwire.MilliSatoshi, expiry uint32, currentHeight int32,
|
||||
circuitKey channeldb.CircuitKey, hodlChan chan<- interface{},
|
||||
eob []byte) (*HodlEvent, error) {
|
||||
payload Payload) (*HodlEvent, error) {
|
||||
|
||||
i.Lock()
|
||||
defer i.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user