diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index 3e79ff2..6946c97 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -1444,8 +1444,7 @@ bool P2PServer::P2PClient::on_block_broadcast(const uint8_t* buf, uint32_t size) } else if (peer_height > our_height) { if (peer_height >= our_height + 2) { - const int level = (peer_height >= our_height + 3) ? 3 : 4; - LOGWARN(level , "peer " << static_cast(m_addrString) << " is ahead on mainchain (height " << peer_height << ", your height " << our_height << "). Is your monerod stuck or lagging?"); + LOGWARN(3, "peer " << static_cast(m_addrString) << " is ahead on mainchain (height " << peer_height << ", your height " << our_height << "). Is your monerod stuck or lagging?"); } } else {