-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Clear unprocessed received messages after peer disconnect.
DLC message handler implements the OnionMessageHandler and Provider to be able to hook onto the `peer_disconnected` event. This allows for clearing the messages precisely when the disconnects happens. Only messages from the disconnected peer are removed from the message queue. This prevents the dlc message handler from processing outdated messages due to retry logic. The default implementation of the `OnionMessageHandler` and the `OnionMessageProvider` are copied from the `IgnoringMessageHandler`.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters