Extend #11583 to include the most common message generated by non-contributing peers (port scanners?)

37% of the log default log entries for a node that has been up for ~24hrs was "version handshake timeout..."
pull/12342/head
Clem Taylor 7 years ago
parent 85123be78d
commit c887f87d59

@ -1431,7 +1431,7 @@ void CConnman::ThreadSocketHandler()
} }
else if (!pnode->fSuccessfullyConnected) else if (!pnode->fSuccessfullyConnected)
{ {
LogPrintf("version handshake timeout from %d\n", pnode->GetId()); LogPrint(BCLog::NET, "version handshake timeout from %d\n", pnode->GetId());
pnode->fDisconnect = true; pnode->fDisconnect = true;
} }
} }

Loading…
Cancel
Save