]> git.bitcoin.ninja Git - rust-lightning/commit
Support including invreqs when building payment onions
authorValentine Wallace <vwallace@protonmail.com>
Fri, 28 Jun 2024 17:45:28 +0000 (13:45 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:32 +0000 (16:17 -0400)
commit6a424536accfa6e9be469744f9e8314b172d4b33
tree6843abe63ede00e8c96efccba158f0dcb715795f
parent9b3e30707ec3b1d96fc83b4c340ccf14c940497f
Support including invreqs when building payment onions

Add a new invoice request parameter to onion_utils::create_payment_onion. As of
this commit it 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/blinded_payment_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/onion_payment.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/payment_tests.rs