]> git.bitcoin.ninja Git - rust-lightning/commit
3/3 Use `MessageSendInstructions` instead of `PendingOnionMessage`
authorMatt Corallo <git@bluematt.me>
Wed, 21 Aug 2024 19:10:46 +0000 (19:10 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 22:29:18 +0000 (22:29 +0000)
commit29990674ea96f6439481cc8d7730bb8dc5defd54
tree6e658ac72c15169a00ef723a1d965a3569b8a27a
parenteecaf1487990f132ce4ca7b750eabb43a7207525
3/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 next step towards untangling that, moving from
`PendingOnionMessage` to `MessageSendInstructions` for the outbound
message queue in `AsyncPaymentsMessageHandler`. Better, we can also
drop the `c_bindings`-specific message queue variant, unifying the
APIs.

Here we also drop `PendingOnionMessage` entirely.
lightning/src/ln/channelmanager.rs
lightning/src/onion_message/async_payments.rs
lightning/src/onion_message/messenger.rs