Tweaked block broadcast rules

This commit is contained in:
SChernykh 2021-09-11 23:44:09 +02:00
parent fc88b9c9b2
commit b8f04ac787

View file

@ -1409,7 +1409,6 @@ 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) {
LOGWARN(4, "peer " << static_cast<char*>(m_addrString) << " is ahead on mainchain (height " << peer_height << ", your height " << our_height << "). Is your monerod stuck or lagging?");
return true;
}
}
else {