Browse Source

Merge #8594: Do not add random inbound peers to addrman.

eb3596f Do not add random inbound peers to addrman. (Gregory Maxwell)
0.14
Pieter Wuille 8 years ago
parent
commit
5b2ea29cf4
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 6
      src/main.cpp

6
src/main.cpp

@ -5043,12 +5043,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->fGetAddr = true; pfrom->fGetAddr = true;
} }
addrman.Good(pfrom->addr); addrman.Good(pfrom->addr);
} else {
if (((CNetAddr)pfrom->addr) == (CNetAddr)addrFrom)
{
addrman.Add(addrFrom, addrFrom);
addrman.Good(addrFrom);
}
} }
pfrom->fSuccessfullyConnected = true; pfrom->fSuccessfullyConnected = true;

Loading…
Cancel
Save