]> git.bitcoin.ninja Git - rust-lightning/commit
Add PendingOutboundPayment::InvoiceReceived
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 30 Aug 2023 17:01:15 +0000 (12:01 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 7 Sep 2023 21:54:09 +0000 (16:54 -0500)
commitb5169301d8d1b0c74c0b796be0e06acc122b766d
tree5c27da7843ffde66eac40dd99ab53f0b9095f370
parentcbeaeb708f413b1abadc7a3dadb2f7cf0a531eae
Add PendingOutboundPayment::InvoiceReceived

When a BOLT 12 invoice has been received, a payment attempt is made and
any errors result in abandoning the PendingOutboundPayment. This results
in generating at PaymentFailed event, which has a PaymentHash. Thus,
when receiving an invoice, transition from AwaitingInvoice to a new
InvoiceReceived state, the latter of which contains a PaymentHash such
the abandon_payment helper can still be used.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs