]> git.bitcoin.ninja Git - rust-lightning/commit
Support encoding invreqs in outbound onion payloads
authorValentine Wallace <vwallace@protonmail.com>
Fri, 28 Jun 2024 15:40:53 +0000 (11:40 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:17:12 +0000 (16:17 -0400)
commita80af56af7c33dba0db5136a8c4b77f4db1a2ec1
tree1517696b772f652a94712dfc313fe08f1ec6236c
parent639446ad63bed1d70016a2fe116dce17a718213f
Support encoding invreqs in outbound onion payloads

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.

We use an experimental TLV type for this new onion payload field, since the
spec is still not merged in the BOLTs.
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/outbound_payment.rs