mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-20 05:28:47 -06:00
Tweaked warning level for lagging nodes
This commit is contained in:
parent
54d0ab3658
commit
af2a8eeb08
@ -1444,8 +1444,7 @@ bool P2PServer::P2PClient::on_block_broadcast(const uint8_t* buf, uint32_t size)
|
|||||||
}
|
}
|
||||||
else if (peer_height > our_height) {
|
else if (peer_height > our_height) {
|
||||||
if (peer_height >= our_height + 2) {
|
if (peer_height >= our_height + 2) {
|
||||||
const int level = (peer_height >= our_height + 3) ? 3 : 4;
|
LOGWARN(3, "peer " << static_cast<char*>(m_addrString) << " is ahead on mainchain (height " << peer_height << ", your height " << our_height << "). Is your monerod stuck or lagging?");
|
||||||
LOGWARN(level , "peer " << static_cast<char*>(m_addrString) << " is ahead on mainchain (height " << peer_height << ", your height " << our_height << "). Is your monerod stuck or lagging?");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user