]> git.bitcoin.ninja Git - rust-lightning/commit
Include invreq in payment onion when sending async payments
authorValentine Wallace <vwallace@protonmail.com>
Wed, 18 Sep 2024 15:17:49 +0000 (11:17 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:55 +0000 (16:17 -0400)
commit925a0cb38be347806386595ea40e87b1cabe835d
tree32e2525846fc2b164b70e91eb4fc82571d18b1b5
parent520ae0b1f43d158ffc3ec5612efcfb11f6965e69
Include invreq in payment onion when sending async payments

Past commits have set us up to include invoice requests in outbound async
payment onions. Here we actually pull the invoice request from where it's
stored in outbound_payments and pass it into the correct utility for inclusion
in the onion on initial send.

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