aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 09:03:33 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-14 10:30:01 +0000
commitf26e0b5d11fcef0cc76e4854855358bf444cbcf0 (patch)
treec7588a85f2e79c8a9fb5f509dc2ba07c836c0e00 /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge pull request #5423 (diff)
downloadmonero-f26e0b5d11fcef0cc76e4854855358bf444cbcf0.tar.xz
cryptonote_protocol: warn when the last connection goes
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index b7a50783a..7adca3158 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -2366,6 +2366,8 @@ skip:
{
MINFO("Target height decreasing from " << previous_target << " to " << target);
m_core.set_target_blockchain_height(target);
+ if (target == 0 && context.m_state > cryptonote_connection_context::state_before_handshake && !m_stopping)
+ MCWARNING("global", "monerod is now disconnected from the network");
}
m_block_queue.flush_spans(context.m_connection_id, false);