Only store and connect to NODE_NETWORK nodes

This commit is contained in:
Pieter Wuille
2016-03-26 13:31:25 +01:00
committed by lateminer
parent 0c7d5a8af8
commit be365a0d15
2 changed files with 7 additions and 0 deletions

View File

@@ -5162,6 +5162,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
{
boost::this_thread::interruption_point();
if (!(addr.nServices & NODE_NETWORK))
continue;
if (addr.nTime <= 100000000 || addr.nTime > nNow + 10 * 60)
addr.nTime = nNow - 5 * 24 * 60 * 60;
pfrom->AddAddressKnown(addr);