]> git.bitcoin.ninja Git - rust-lightning/commit
Update handle_message to accept OffersContext data as an input field
authorshaavan <shaavan.github@gmail.com>
Sat, 15 Jun 2024 13:52:28 +0000 (19:22 +0530)
committershaavan <shaavan.github@gmail.com>
Tue, 9 Jul 2024 11:57:08 +0000 (17:27 +0530)
commitfbe9dfa938a3bbbc7ba2a196e7d8972c1085a8b9
tree1ab8e98d3921294e7825c56c372a2064945d52a2
parent7f82cde861e7b1842ac62df29711af73af62246b
Update handle_message to accept OffersContext data as an input field

1. Handling Offers Data:
   - Updated `handle_message` to accept `OffersContext` data as an input field.
   - If it is present, it will be utilized by the handler to
     abandon outbound payments that have failed for any reason.

2. Consistency in Custom Message Handling:
   - Updated `handle_custom_message` to accept optional custom data.
     for consistency.
   - Note: `custom_data` will remain unused in this PR.
fuzz/src/onion_message.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/peer_handler.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/offers.rs