-
Notifications
You must be signed in to change notification settings - Fork 421
Always forward gossip for all our channels to all our peers #4216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1917,6 +1917,16 @@ pub enum MessageSendEvent { | |
| BroadcastChannelUpdate { | ||
| /// The channel_update which should be sent. | ||
| msg: ChannelUpdate, | ||
| /// The node_id of the first endpoint of the channel. | ||
| /// | ||
| /// This is not used in the message broadcast, but rather is useful for deciding which | ||
| /// peer(s) to send the update to. | ||
| node_id_1: NodeId, | ||
| /// The node_id of the second endpoint of the channel. | ||
| /// | ||
| /// This is not used in the message broadcast, but rather is useful for deciding which | ||
| /// peer(s) to send the update to. | ||
| node_id_2: NodeId, | ||
|
Comment on lines
+1920
to
+1929
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could these be replaced by a
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The network graph/
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah okay, I see it now in |
||
| }, | ||
| /// Used to indicate that a node_announcement should be broadcast to all peers. | ||
| BroadcastNodeAnnouncement { | ||
|
|
@@ -2189,13 +2199,13 @@ pub trait RoutingMessageHandler: BaseMessageHandler { | |
| fn handle_channel_announcement( | ||
| &self, their_node_id: Option<PublicKey>, msg: &ChannelAnnouncement, | ||
| ) -> Result<bool, LightningError>; | ||
| /// Handle an incoming `channel_update` message, returning true if it should be forwarded on, | ||
| /// `false` or returning an `Err` otherwise. | ||
| /// Handle an incoming `channel_update` message, returning the node IDs of the channel | ||
| /// participants if the message should be forwarded on, `None` or returning an `Err` otherwise. | ||
| /// | ||
| /// If `their_node_id` is `None`, the message was generated by our own local node. | ||
| fn handle_channel_update( | ||
| &self, their_node_id: Option<PublicKey>, msg: &ChannelUpdate, | ||
| ) -> Result<bool, LightningError>; | ||
| ) -> Result<Option<(NodeId, NodeId)>, LightningError>; | ||
| /// Gets channel announcements and updates required to dump our routing table to a remote node, | ||
| /// starting at the `short_channel_id` indicated by `starting_point` and including announcements | ||
| /// for a single channel. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.