Move initial_routing_sync decision to the Router
[rust-lightning] / lightning / src / ln / msgs.rs
index 483d69e7a39ee9b3b0a0aac35a9dad46882f150f..519c56542ba491856329319c9df6bd231ba88ed2 100644 (file)
@@ -604,6 +604,8 @@ pub trait RoutingMessageHandler : Send + Sync {
        /// starting at the node *after* the provided publickey and including batch_amount entries.
        /// 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<NodeAnnouncement>;
+       /// Returns whether a full sync should be requested from a peer.
+       fn should_request_full_sync(&self, node_id: &PublicKey) -> bool;
 }
 
 pub(crate) struct OnionRealm0HopData {