-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register and un-register for notifications on all used LSPs (#1035)
* Update breez.proto * LspAPI: add new method list_used_lsps() * Register and un-register for notifications on all used LSPs * NodeAPI: add has_active_channel_to() * Notifications: only consider LSPs with whom we have a channel * Notification LSPs: always consider active LSP, only historical LSPs with whom we have a channel * NodeAPI: remove has_active_channel_to() * NodeAPI: extract get_open_peer_channels() * Simplify get_open_peer_channels, change to get_open_peers * Register/unregister notifications: attempt for all used LSPs, even if one failed * Register/unregister notifications: throw error if any attempt failed, but preserve loop * get_notification_lsps: don't throw error if no active LSP * get_notification_lsps: simplify active LSP check * Add comment to breez.proto * get_open_peer_channels_pb: consider both public and private channels * get_routing_hints: separate private from public channels
- Loading branch information
Showing
7 changed files
with
198 additions
and
49 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
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
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
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