]> git.bitcoin.ninja Git - rust-lightning/commit
Don't abandon payments for duplicate invoices
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 24 Jul 2024 21:33:02 +0000 (16:33 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Aug 2024 15:42:17 +0000 (10:42 -0500)
commit144d4882adf910d3daeab3ddba0b4e8793d7c25a
tree7fda824faa7eb4b86ec7fadc4ed0772fcc758a52
parentbb445a3973957b5046e2354992901fb675198cad
Don't abandon payments for duplicate invoices

When making an outbound BOLT12 payment, multiple invoices may be
received for the same payment id. Instead of abandoning the payment when
a duplicate invoice received, simply ignore it without responding with
an InvoiceError. This prevents abandoning in-progress payments and
sending unnecessary onion messages.
lightning/src/ln/channelmanager.rs
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/offers_tests.rs