-
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 certain unprocessed messages after peer disconnect
The DLC message handler implements the `OnionMessageHandler` and `OnionMessageProvider` to be able to hook onto the `peer_disconnected` event. This allows for clearing certain `rust-dlc` messages precisely when a disconnect happens. We drop the `SubChannelConfirm` and `SubChannelCloseConfirm` messages to avoid bugs such as the one reported here[1]. The rest of the implementations of `OnionMessageHandler` and `OnionMessageProvider` is copied from the `IgnoringMessageHandler`. [1]: get10101/10101#792. Co-authored-by: Richard Holzeis <richard@holzeis.me>
- Loading branch information
Showing
2 changed files
with
73 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