From 863468964ef0de6108b9cbe6fbf5eec6407dab9a Mon Sep 17 00:00:00 2001 From: victor-tucci Date: Fri, 24 May 2024 22:51:16 +0530 Subject: [PATCH] misleading indentation error fix --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 75aa3d52679..b599768f3ac 100755 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -2748,9 +2748,10 @@ skip: uint64_t target = 0; m_p2p->for_each_connection([&](const connection_context& cntxt, nodetool::peerid_type peer_id, uint32_t support_flags) { MINFO("DEBUGconnection state:" << cntxt.m_state << " cntxtId:" << cntxt.m_connection_id << " context:"<= cryptonote_connection_context::state_synchronizing && cntxt.m_connection_id != context.m_connection_id) + if (cntxt.m_state >= cryptonote_connection_context::state_synchronizing && cntxt.m_connection_id != context.m_connection_id){ target = std::max(target, cntxt.m_remote_blockchain_height); - MINFO("Target found:" << target); + } + MINFO("Target found:" << target); return true; }); const uint64_t previous_target = m_core.get_target_blockchain_height();