mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
Disconnect peers which we do not receive VERACKs from within 60 sec
This commit is contained in:
parent
b709fe7ffc
commit
2cbd1196b7
@ -1323,6 +1323,11 @@ void CConnman::ThreadSocketHandler()
|
||||
LogPrintf("ping timeout: %fs\n", 0.000001 * (GetTimeMicros() - pnode->nPingUsecStart));
|
||||
pnode->fDisconnect = true;
|
||||
}
|
||||
else if (!pnode->fSuccessfullyConnected)
|
||||
{
|
||||
LogPrintf("version handshake timeout from %d\n", pnode->id);
|
||||
pnode->fDisconnect = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user