]> git.bitcoin.ninja Git - rust-lightning/commit
Introduce MessageContext in ReceiveTlvs
authorshaavan <shaavan.github@gmail.com>
Fri, 14 Jun 2024 12:36:05 +0000 (18:06 +0530)
committershaavan <shaavan.github@gmail.com>
Mon, 8 Jul 2024 20:15:13 +0000 (01:45 +0530)
commit7f82cde861e7b1842ac62df29711af73af62246b
treef85ce8ea537fefa7352f7bc5b6ca2c136882c9f1
parent7e2fde705424f7b5b365e9511bea485891b0f860
Introduce MessageContext in ReceiveTlvs

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

2. Variants in MessageContext:
   - The `MessageContext` enum includes two variants: "Offers" and
     "Context"
   - One of the variants, `Offers`, 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
lightning/src/onion_message/packet.rs