]> git.bitcoin.ninja Git - rust-lightning/commit
1/3 Use `MessageSendInstructions` instead of `PendingOnionMessage`
authorMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 01:41:27 +0000 (01:41 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 22:27:44 +0000 (22:27 +0000)
commit90361c18bf709fa2d2f148ff375351fda7528c98
tree40efabdcb9bc12d505ff802a5b7bf89672174e98
parentb396f0afd1975b48ba4e08f9a87edc0ea53b0c91
1/3 Use `MessageSendInstructions` instead of `PendingOnionMessage`

Now that the `MessageRouter` can `create_blinded_paths` forcing
callers of the `OnionMessenger` to provide it with a reply path up
front is unnecessary complexity, doubly so in message handlers.

Here we take the first step towards untangling that, moving from
`PendingOnionMessage` to `MessageSendInstructions` for the outbound
message queue in `CustomMessageHandler`. Better, we can also drop
the `c_bindings`-specific message queue variant, unifying the APIs.
fuzz/src/onion_message.rs
lightning/src/ln/peer_handler.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs