From: Arik Sosman Date: Fri, 25 Oct 2024 23:57:27 +0000 (-0700) Subject: Log enqueueing of gossip messages X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0a8c05f8bac2623b1fef188e498fa640f42ced42;p=rust-lightning Log enqueueing of gossip messages --- 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); } }