Show block share % in status

This commit is contained in:
SChernykh
2021-09-07 09:53:38 +02:00
parent 899d5a82dd
commit 25772abc0f
5 changed files with 23 additions and 12 deletions
+5
View File
@@ -913,6 +913,11 @@ bool P2PServer::P2PClient::on_read(char* data, uint32_t size)
}
void P2PServer::P2PClient::on_read_failed(int /*err*/)
{
on_disconnected();
}
void P2PServer::P2PClient::on_disconnected()
{
if (!m_handshakeComplete) {
LOGWARN(5, "peer " << static_cast<char*>(m_addrString) << " disconnected before finishing handshake");