mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #5439
f26e0b5d
cryptonote_protocol: warn when the last connection goes (moneromooo-monero)
This commit is contained in:
commit
1fc20ba48a
1 changed files with 2 additions and 0 deletions
|
@ -2366,6 +2366,8 @@ skip:
|
||||||
{
|
{
|
||||||
MINFO("Target height decreasing from " << previous_target << " to " << target);
|
MINFO("Target height decreasing from " << previous_target << " to " << target);
|
||||||
m_core.set_target_blockchain_height(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);
|
m_block_queue.flush_spans(context.m_connection_id, false);
|
||||||
|
|
Loading…
Reference in a new issue