multi: increase test coverage payments

The BOLT spec was updated and now requires the payment address for
the writer and reader. We increase the test coverage for payments
setting a wrong payment address.
This commit is contained in:
ziggie
2025-06-24 22:15:07 +02:00
parent 6b80796bb8
commit 02714f72a0
3 changed files with 70 additions and 1 deletions

View File

@@ -1038,7 +1038,11 @@ func (i *InvoiceRegistry) notifyExitHopHtlcLocked(
)
switch {
case errors.Is(err, ErrInvoiceNotFound) ||
errors.Is(err, ErrNoInvoicesCreated):
errors.Is(err, ErrNoInvoicesCreated) ||
errors.Is(err, ErrInvRefEquivocation):
log.Debugf("Invoice not found with error: %v, failing htlc",
err)
// If the invoice was not found, return a failure resolution
// with an invoice not found result.