Don't apply gossip backpressure to non-channel-announcing peers
[rust-lightning] / lightning / src / routing / gossip.rs
index 2d3cda3f47396abf79dc28e3e641fef760121f6a..e2c59b4f4340ceba68b1a62e881af214598074f3 100644 (file)
@@ -657,6 +657,10 @@ where U::Target: UtxoLookup, L::Target: Logger
                features.set_gossip_queries_optional();
                features
        }
+
+       fn processing_queue_high(&self) -> bool {
+               self.network_graph.pending_checks.too_many_checks_pending()
+       }
 }
 
 impl<G: Deref<Target=NetworkGraph<L>>, U: Deref, L: Deref> MessageSendEventsProvider for P2PGossipSync<G, U, L>