]> git.bitcoin.ninja Git - rust-lightning/commit
Introduce RecipientData in ReceiveTlvs
authorshaavan <shaavan.github@gmail.com>
Fri, 14 Jun 2024 12:36:05 +0000 (18:06 +0530)
committershaavan <shaavan.github@gmail.com>
Tue, 25 Jun 2024 07:45:05 +0000 (13:15 +0530)
commit73e115dbb086dcc049dfd3a94c1f9e63ef377616
treebaafe2112cceefab77f5d7057f65ab195113979d
parent15d5cb09b87765386e0f4b2cf9cc06618827572b
Introduce RecipientData in ReceiveTlvs

1. New Enum for Enhanced Data Handling:
   - Introduced the `RecipientData` enum, which allows the node to include
     additional data along with the `reply_path` sent to the counterparty.
   - The node anticipates receiving this data back for further processing.

2. Variants in RecipientData:
   - The `RecipientData` enum includes two variants.
   - One of the variants, `OffersContext`, holds the `payment_id`
     of the associated Outbound BOLT12 Payment.

3. Future Usage:
   - This enum will be utilized in a subsequent commit to abandon outbound
     payments that have failed to complete for various reasons.
lightning/src/blinded_path/message.rs
lightning/src/onion_message/messenger.rs