Merge pull request #2959 from tnull/2024-03-support-gossip-queries-in-ignoring-handler

Signal `GossipQuery` support when using `IgnoringMessagHandler`
This commit is contained in:
Gursharan Singh 2024-03-26 22:06:32 +01:00 committed by GitHub
commit 68d5e88e46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -116,7 +116,9 @@ impl RoutingMessageHandler for IgnoringMessageHandler {
fn handle_query_short_channel_ids(&self, _their_node_id: &PublicKey, _msg: msgs::QueryShortChannelIds) -> Result<(), LightningError> { Ok(()) }
fn provided_node_features(&self) -> NodeFeatures { NodeFeatures::empty() }
fn provided_init_features(&self, _their_node_id: &PublicKey) -> InitFeatures {
InitFeatures::empty()
let mut features = InitFeatures::empty();
features.set_gossip_queries_optional();
features
}
fn processing_queue_high(&self) -> bool { false }
}