Skip to content

Commit c026764

Browse files
committed
Fix comment for sync_routing_table
Corrects the comment for sync_routing_table in RoutingMessageHandler to be less prescriptive about the implementor's actions.
1 parent e0bb63b commit c026764

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,9 @@ pub trait RoutingMessageHandler : Send + Sync + events::MessageSendEventsProvide
831831
/// immediately higher (as defined by <PublicKey as Ord>::cmp) than starting_point.
832832
/// If None is provided for starting_point, we start at the first node.
833833
fn get_next_node_announcements(&self, starting_point: Option<&PublicKey>, batch_amount: u8) -> Vec<NodeAnnouncement>;
834-
/// Initiates routing gossip sync by querying a peer to discover channels
835-
/// and their associated routing gossip messages. This method will use a
836-
/// sync strategy defined by the implementor.
834+
/// Called when a connection is established with a peer. This can be used to
835+
/// perform routing table synchronization using a strategy defined by the
836+
/// implementor.
837837
fn sync_routing_table(&self, their_node_id: &PublicKey, init: &Init);
838838
/// Handles the reply of a query we initiated to learn about channels
839839
/// for a given range of blocks. We can expect to receive one or more

0 commit comments

Comments
 (0)