- /// Returns whether a full sync should be requested from a peer.
- fn should_request_full_sync(&self, node_id: &PublicKey) -> bool;
- /// Initiates routing gossip sync by querying a peer to discover channels
- /// and their associated routing gossip messages. This method will use a
- /// sync strategy defined by the implementor.
- fn sync_routing_table(&self, their_node_id: &PublicKey);
+ /// Called when a connection is established with a peer. This can be used to
+ /// perform routing table synchronization using a strategy defined by the
+ /// implementor.
+ fn sync_routing_table(&self, their_node_id: &PublicKey, init: &Init);