Skip to content

Commit

Permalink
Merge pull request #3385 from arik-so/gossip-filter-event-send-logging
Browse files Browse the repository at this point in the history
Log enqueueing of gossip messages
  • Loading branch information
TheBlueMatt authored Oct 28, 2024
2 parents 5c975f7 + 0a8c05f commit bba3071
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lightning/src/ln/peer_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2403,9 +2403,16 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
}
},
MessageSendEvent::SendChannelRangeQuery { ref node_id, ref msg } => {
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 } => {
Expand All @@ -2418,6 +2425,10 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, OM: Deref, L: Deref, CM
self.enqueue_message(&mut *get_peer_for_forwarding!(node_id)?, msg);
}
MessageSendEvent::SendGossipTimestampFilter { ref node_id, ref msg } => {
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);
}
}
Expand Down

0 comments on commit bba3071

Please sign in to comment.