Skip to content

Commit

Permalink
Merge branch 'develop' into fix/5285
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson authored Nov 21, 2024
2 parents edc8b67 + 6a0d048 commit 212914b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion stackslib/src/net/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,11 @@ impl PeerNetwork {
};

match self.can_register_peer(&neighbor_key, outbound) {
Ok(_) => {}
Ok(_) => {
info!("Neighbor accepted!";
"public key" => ?pubkey_opt,
"address" => %neighbor_key.addrbytes);
}
Err(e) => {
debug!(
"{:?}: Could not register peer {:?}: {:?}",
Expand Down Expand Up @@ -1905,6 +1909,11 @@ impl PeerNetwork {
for (nk, pubkh) in nk_remove.into_iter() {
// remove event state
self.events.remove(&nk);
info!("Dropping neighbor!";
"event id" => %event_id,
"public address" => %pubkh,
"public key" => %nk.addrbytes
);

// remove inventory state
if let Some(inv_state) = self.inv_state.as_mut() {
Expand Down

0 comments on commit 212914b

Please sign in to comment.