From: Matt Corallo Date: Tue, 21 May 2019 03:59:35 +0000 (-0400) Subject: Fix printing Good on not-Good X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=57dd4b03b074c5a27f59e487f7171fcf7b39bfef;p=dnsseed-rust Fix printing Good on not-Good --- diff --git a/src/main.rs b/src/main.rs index 0f14333..ae38a5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -180,7 +180,7 @@ pub fn scan_node(scan_time: Instant, node: SocketAddr) { } else { assert!(state_lock.fail_reason != AddressState::Good); let old_state = store.set_node_state(node, state_lock.fail_reason, 0); - if old_state != state_lock.fail_reason && state_lock.msg.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); } }