From 0a8c05f8bac2623b1fef188e498fa640f42ced42 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Fri, 25 Oct 2024 16:57:27 -0700 Subject: [PATCH] Log enqueueing of gossip messages --- lightning/src/ln/peer_handler.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index b5fc3443b..2d4416e5a 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -2403,9 +2403,16 @@ impl { + log_gossip!(WithContext::from(&self.logger, Some(*node_id), None, None), "Handling SendChannelRangeQuery event in peer_handler for node {} with first_blocknum={}, number_of_blocks={}", + log_pubkey!(node_id), + msg.first_blocknum, + msg.number_of_blocks); self.enqueue_message(&mut *get_peer_for_forwarding!(node_id)?, msg); }, MessageSendEvent::SendShortIdsQuery { ref node_id, ref msg } => { + log_gossip!(WithContext::from(&self.logger, Some(*node_id), None, None), "Handling SendShortIdsQuery event in peer_handler for node {} with num_scids={}", + log_pubkey!(node_id), + msg.short_channel_ids.len()); self.enqueue_message(&mut *get_peer_for_forwarding!(node_id)?, msg); } MessageSendEvent::SendReplyChannelRange { ref node_id, ref msg } => { @@ -2418,6 +2425,10 @@ impl { + log_gossip!(WithContext::from(&self.logger, Some(*node_id), None, None), "Handling SendGossipTimestampFilter event in peer_handler for node {} with first_timestamp={}, timestamp_range={}", + log_pubkey!(node_id), + msg.first_timestamp, + msg.timestamp_range); self.enqueue_message(&mut *get_peer_for_forwarding!(node_id)?, msg); } } -- 2.39.5