]> git.bitcoin.ninja Git - rust-lightning/commit
Add a `MessageSendInstructions::ForReply` 2024-08-bindings-om
authorMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 01:31:07 +0000 (01:31 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 22 Aug 2024 22:39:46 +0000 (22:39 +0000)
commit47b527a656b3d965a63f7871eebb98ebdc9638f0
treef92f4cebb3561d131d9f842460a98ead036b7cb7
parent131ac4f5a86efa3dcfd860c64b2d863478c44900
Add a `MessageSendInstructions::ForReply`

In order to allow onion message handlers to reply asynchronously
without introducing a circular dependency graph, the message
handlers need to be able to send replies described by
`MessageSendInstructions`. This allows them to send replies via the
normal message queuing (i.e. without making a function call to
`OnionMessenger`).

Here we enable that by adding a `MessageSendInstructions::ForReply`
variant which holds `ReplyInstruction`s.

Fixes #3178
lightning/src/onion_message/messenger.rs