Introduce REQUIRED_SERVICES constant

This commit is contained in:
Pieter Wuille
2016-06-13 16:01:21 +02:00
parent ee06e04369
commit ecd7fd37c8
3 changed files with 4 additions and 2 deletions

View File

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