Added feeler connections increasing good addrs in the tried table.

This commit is contained in:
Ethan Heilman
2016-06-17 00:10:07 -04:00
committed by lateminer
parent c808450d87
commit 82072c13f8
4 changed files with 97 additions and 18 deletions

View File

@@ -4973,6 +4973,12 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
if (strCommand == NetMsgType::VERSION)
{
// Feeler connections exist only to verify if address is online.
if (pfrom->fFeeler) {
assert(pfrom->fInbound == false);
pfrom->fDisconnect = true;
}
// Each connection can only send one version message
if (pfrom->nVersion != 0)
{