]> git.bitcoin.ninja Git - rust-lightning/commit
Add a `payment_metadata` field to `RecipientOnionFields`
authorMatt Corallo <git@bluematt.me>
Fri, 24 Mar 2023 01:31:14 +0000 (01:31 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 19 Apr 2023 02:57:19 +0000 (02:57 +0000)
commitee9afd315d22151e314aff2ca826561569ac4d03
treecd034f3a4321895a6e59a68f11e3475ca37d3550
parenta90a35bcbb10b7e53340fba85222867499e84a0f
Add a `payment_metadata` field to `RecipientOnionFields`

This adds the new `payment_metadata` to `RecipientOnionFields`,
passing the metadata from BOLT11 invoices through the send pipeline
and finally copying them info the onion when sending HTLCs.

This completes send-side support for the new payment metadata
feature.
lightning-invoice/src/payment.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/onion_utils.rs
lightning/src/ln/outbound_payment.rs