Skip to content

Commit 0e28b30

Browse files
committed
\Add detailed P2P discovery debugging to identify node isolation issues"
1 parent 87e0e65 commit 0e28b30

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎development/qnet-integration/src/unified_p2p.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,20 @@ impl SimplifiedP2P {
286286
Err(_) => "unknown".to_string(),
287287
};
288288

289+
println!("[P2P] 🔍 DEBUG: Our external IP: {}", our_external_ip);
290+
println!("[P2P] 🔍 DEBUG: Known node IPs: {:?}", known_node_ips);
291+
289292
// Search on known server IPs with proper regional ports
290293
for ip in known_node_ips {
294+
println!("[P2P] 🔍 DEBUG: Processing IP: {}", ip);
295+
291296
// CRITICAL: Skip our own IP to prevent self-connection
292297
if ip == our_external_ip {
293298
println!("[P2P] 🚫 Skipping self-connection to own IP: {}", ip);
294299
continue;
295300
}
301+
302+
println!("[P2P] 🌐 Attempting to connect to peer: {}", ip);
296303
// Determine correct regional ports for this IP
297304
let target_ports = if let Some((_, region_name)) = GENESIS_BOOTSTRAP_NODES.iter().find(|(node_ip, _)| *node_ip == ip) {
298305
match *region_name {

0 commit comments

Comments
 (0)