|
|
|
@ -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
|
|
|
|
|