]> git.bitcoin.ninja Git - rust-lightning/commit
Add PaymentFailureReason::InvoiceRequestRejected
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 6 Aug 2024 23:33:51 +0000 (18:33 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 14 Aug 2024 15:55:59 +0000 (10:55 -0500)
commit1563186c2b40098c1872d718ed75891c2a42c702
tree49485e1ab4be160295f3551bc1fdc198d404ec47
parent457ba24ee5cfc66e756b298b323f107755278438
Add PaymentFailureReason::InvoiceRequestRejected

Instead of re-using PaymentFailureReason::RecipientRejected, define a
new InvoiceRequestRejected variant for when an InvoiceError is received
instead of a Bolt12Invoice. This allows user to differentiate the cause
of the failure.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/offers_tests.rs