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 -2
View File
@@ -20,6 +20,7 @@ type invoiceUpdateCtx struct {
finalCltvRejectDelta int32
customRecords record.CustomSet
mpp *record.MPP
amp *record.AMP
}
// invoiceRef returns an identifier that can be used to lookup or update the
@@ -34,8 +35,9 @@ func (i *invoiceUpdateCtx) invoiceRef() channeldb.InvoiceRef {
// log logs a message specific to this update context.
func (i *invoiceUpdateCtx) log(s string) {
log.Debugf("Invoice%v: %v, amt=%v, expiry=%v, circuit=%v, mpp=%v",
i.invoiceRef, s, i.amtPaid, i.expiry, i.circuitKey, i.mpp)
log.Debugf("Invoice%v: %v, amt=%v, expiry=%v, circuit=%v, mpp=%v, "+
"amp=%v", i.hash[:], s, i.amtPaid, i.expiry, i.circuitKey,
i.mpp, i.amp)
}
// failRes is a helper function which creates a failure resolution with