]> git.bitcoin.ninja Git - rust-lightning/commit
Update handle_message to Accept offers_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, 25 Jun 2024 07:47:46 +0000 (13:17 +0530)
commit8acd90c852fba5c49436d3fae0e4091b6dbd3323
treeef348ffc70a8debb8f20a38e8139de646817d128
parent73e115dbb086dcc049dfd3a94c1f9e63ef377616
Update handle_message to Accept offers_data as an Input Field

1. Handling Offers Data:
   - Updated `handle_message` to accept `offers_data` as an input field.
   - If `offers_data` 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