multi: add more logging when fetching invoices and payments.

This commit is contained in:
ziggie
2025-04-18 15:27:00 +02:00
parent 729c84bee3
commit 440ed31419
7 changed files with 134 additions and 6 deletions

View File

@@ -202,6 +202,12 @@ type PaymentCreationInfo struct {
FirstHopCustomRecords lnwire.CustomRecords
}
func (p *PaymentCreationInfo) String() string {
return fmt.Sprintf("payment_id=%v, amount=%v, created_at=%v, "+
"payment_request=%v", p.PaymentIdentifier, p.Value,
p.CreationTime, p.PaymentRequest)
}
// htlcBucketKey creates a composite key from prefix and id where the result is
// simply the two concatenated.
func htlcBucketKey(prefix, id []byte) []byte {