]> git.bitcoin.ninja Git - rust-lightning/commit
Store invreqs in StaticInvoiceReceived outbound payments
authorValentine Wallace <vwallace@protonmail.com>
Fri, 28 Jun 2024 18:03:46 +0000 (14:03 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:51 +0000 (16:17 -0400)
commit520ae0b1f43d158ffc3ec5612efcfb11f6965e69
treea418f89b9350050dff8e3e41eddca708464cc4fb
parentfead88faed57bf0fddcfe0904d9711f9c2b52d9e
Store invreqs in StaticInvoiceReceived outbound payments

When transitioning outbound payments from AwaitingInvoice to
StaticInvoiceReceived, include the invreq in the new state's outbound payment
storage for future inclusion in an async payment onion.

Per BOLTs PR 1149, when paying a static invoice we need to include our original
invoice request in the HTLC onion since the recipient wouldn't have received it
previously.
lightning/src/ln/outbound_payment.rs