diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-03-26 13:31:25 +0100 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-06-13 17:40:16 +0200 |
commit | 5e7ab16d29ac66a5a5753dd4f59b6fb12e60654e (patch) | |
tree | bffac27c15553b6b5e32086d96bdf7deb701f0c4 /src/main.cpp | |
parent | fc83f181530fb566726e5f3f4197fc5586d77fd8 (diff) |
Only store and connect to NODE_NETWORK nodes
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7818056d21..bcaf095ab3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4785,6 +4785,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); |