Skip to content

Commit e068355

Browse files
committed
feat(p2p): log peer_id to hotkey mapping for consensus tracking
1 parent 6a8ea95 commit e068355

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/p2p-consensus/src/network.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,11 @@ impl P2PNetwork {
524524
// Update peer mapping
525525
if self.peer_mapping.get_hotkey(&source).is_none() {
526526
self.peer_mapping.insert(source, signed.signer.clone());
527+
info!(
528+
peer_id = %source,
529+
hotkey = %signed.signer.to_hex(),
530+
"Peer authenticated - mapped peer_id to hotkey"
531+
);
527532
}
528533

529534
Ok(signed.message)

0 commit comments

Comments
 (0)