Open
Description
Per #2298, we want to support the "onion message mailbox" feature. I.e., we want to be able to store onion message forwards on behalf of an offline next-hop peer and forward them later when the peer come back online.
We'll need a way for the OnionMessenger
to know which OM forwards to offline peers need to be stored for later, and a way to store and retrieve them when the offline peer comes back online. We need this feature so that per lightning/bolts#989, when the payer sends a held_htlc_available
OM to the recipient, the recipient’s LSP will hold onto that OM for them until they come back online.
- Basic onion message interception support
- Fix race condition where the peer disconnects right before we go to forward the re-injected onion message, and it gets dropped. The solution here is for the
PeerManager
to indicate that it has received a ping/pong after sending the OM, after which we can generate another event inOnionMessenger
indicating that the intercepted OM is safe to delete. This race should be relatively rare but may be more common on mobile phones where sockets get disconnected as soon as an app goes into the background.
Metadata
Metadata
Assignees
Labels
No labels