From 8a8e060929acc57e9666506b9b2ebc04d9c0b23b Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 22 May 2019 12:54:29 -0400 Subject: [PATCH] Print timeout during request too --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index be27835..0e90a32 100644 --- a/src/main.rs +++ b/src/main.rs @@ -183,6 +183,9 @@ pub fn scan_node(scan_time: Instant, node: SocketAddr) { let old_state = store.set_node_state(node, state_lock.fail_reason, 0); if old_state != state_lock.fail_reason && state_lock.msg.0 != "" && state_lock.msg.1 { printer.add_line(format!("Updating {} from {} to {}", node, old_state.to_str(), &state_lock.msg.0), state_lock.msg.1); + } else if old_state != state_lock.fail_reason && state_lock.fail_reason == AddressState::TimeoutDuringRequest { + printer.add_line(format!("Updating {} from {} to Timeout During Request (ver: {}, vack: {}, addr: {}, block: {})", + node, old_state.to_str(), state_lock.recvd_version, state_lock.recvd_verack, state_lock.recvd_addrs, state_lock.recvd_block), true); } } future::ok(()) -- 2.39.5