]> git.bitcoin.ninja Git - rust-lightning/commit
Include invreq in payment onion when retrying async payments
authorValentine Wallace <vwallace@protonmail.com>
Wed, 18 Sep 2024 15:21:26 +0000 (11:21 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:57 +0000 (16:17 -0400)
commitd574de95f54affc39ed9b93c561d0210bde39808
treeb7a1804f9e4f3bc234e6f0e1ab48e3e6a6bed386
parent925a0cb38be347806386595ea40e87b1cabe835d
Include invreq in payment onion when retrying async payments

While in the last commit we began including invoice requests in async payment
onions on initial send, further work is needed to include them on retry. Here
we begin storing invreqs in our retry data, and pass them along for inclusion
in the onion on payment retry.

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