mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
Removed some noisy warning messages
This commit is contained in:
parent
f7bd2f1815
commit
df52838433
2 changed files with 7 additions and 2 deletions
|
@ -1130,7 +1130,7 @@ bool P2PServer::P2PClient::on_block_broadcast(const uint8_t* buf, uint32_t size)
|
|||
|
||||
if ((server->m_block->m_prevId != server->m_pool->miner_data().prev_id) &&
|
||||
(server->m_block->m_txinGenHeight < server->m_pool->miner_data().height)){
|
||||
LOGWARN(4, "peer " << static_cast<char*>(m_addrString) << " broadcasted a stale block, ignoring it");
|
||||
LOGINFO(4, "peer " << static_cast<char*>(m_addrString) << " broadcasted a stale block, ignoring it");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -558,7 +558,12 @@ void TCPServer<READ_BUF_SIZE, WRITE_BUF_SIZE>::on_connect(uv_connect_t* req, int
|
|||
MutexLock lock(server->m_clientsListLock);
|
||||
|
||||
if (status) {
|
||||
LOGWARN(5, "failed to connect to " << static_cast<char*>(client->m_addrString) << ", error " << uv_err_name(status));
|
||||
if (status == UV_ETIMEDOUT) {
|
||||
LOGINFO(5, "connection to " << static_cast<char*>(client->m_addrString) << " timed out");
|
||||
}
|
||||
else {
|
||||
LOGWARN(5, "failed to connect to " << static_cast<char*>(client->m_addrString) << ", error " << uv_err_name(status));
|
||||
}
|
||||
server->on_connect_failed(client->m_isV6, client->m_addr, client->m_port);
|
||||
server->m_preallocatedClients.push_back(client);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue