]> git.bitcoin.ninja Git - rust-lightning/commit
Support including invreqs when building onion payloads
authorValentine Wallace <vwallace@protonmail.com>
Fri, 28 Jun 2024 16:11:01 +0000 (12:11 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:20 +0000 (16:17 -0400)
commit9b3e30707ec3b1d96fc83b4c340ccf14c940497f
tree684f2dc7423704b76bcd5e21ff7142c3cf57a035
parenta80af56af7c33dba0db5136a8c4b77f4db1a2ec1
Support including invreqs when building onion payloads

Add a new invoice request parameter to onion_utils::build_onion_payloads.
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/functional_tests.rs
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/onion_payment.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/onion_utils.rs