Skip to content

Commit 2cbd119

Browse files
committed
Disconnect peers which we do not receive VERACKs from within 60 sec
1 parent b709fe7 commit 2cbd119

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/net.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,11 @@ void CConnman::ThreadSocketHandler()
13231323
LogPrintf("ping timeout: %fs\n", 0.000001 * (GetTimeMicros() - pnode->nPingUsecStart));
13241324
pnode->fDisconnect = true;
13251325
}
1326+
else if (!pnode->fSuccessfullyConnected)
1327+
{
1328+
LogPrintf("version handshake timeout from %d\n", pnode->id);
1329+
pnode->fDisconnect = true;
1330+
}
13261331
}
13271332
}
13281333
{

0 commit comments

Comments
 (0)