]> git.bitcoin.ninja Git - rust-lightning/commit
Support including invreqs when paying to a route
authorValentine Wallace <vwallace@protonmail.com>
Fri, 28 Jun 2024 17:57:15 +0000 (13:57 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:41 +0000 (16:17 -0400)
commitfead88faed57bf0fddcfe0904d9711f9c2b52d9e
tree0edd6f8b94911f52c63f1aca3a22d040f6dff47b
parent6a424536accfa6e9be469744f9e8314b172d4b33
Support including invreqs when paying to a route

Add a new invoice request parameter to outbound_payments and channelmanager
send-to-route internal utils. As of this commit the invreq will always be
passed in as None, to be updated in future commits.

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/channelmanager.rs
lightning/src/ln/outbound_payment.rs