From: Matt Corallo Date: Wed, 12 Feb 2020 18:40:29 +0000 (-0500) Subject: Further document the initial routing table send. X-Git-Tag: v0.0.12~108^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=c2ca6d3cdc7810c6b2e40013dd0355fd1268a519;hp=a8114a70cb793d85402ba94a2825899638023512;p=rust-lightning Further document the initial routing table send. As requested by Arik at https://github.com/rust-bitcoin/rust-lightning/pull/435#discussion_r378093821 --- diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index e5903f7d..1ad798fd 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -600,10 +600,11 @@ pub trait RoutingMessageHandler : Send + Sync { fn handle_htlc_fail_channel_update(&self, update: &HTLCFailChannelUpdate); /// Gets a subset of the 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 batch_amount entries. + /// including the batch_amount entries immediately higher in numerical value than starting_point. fn get_next_channel_announcements(&self, starting_point: u64, batch_amount: u8) -> Vec<(ChannelAnnouncement, ChannelUpdate, ChannelUpdate)>; /// Gets a subset of the node announcements required to dump our routing table to a remote node, - /// starting at the node *after* the provided publickey and including batch_amount entries. + /// starting at the node *after* the provided publickey and including batch_amount entries + /// immediately higher (as defined by ::cmp) than starting_point. /// If None is provided for starting_point, we start at the first node. fn get_next_node_announcements(&self, starting_point: Option<&PublicKey>, batch_amount: u8) -> Vec; /// Returns whether a full sync should be requested from a peer.