Introduce REQUIRED_SERVICES constant

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

View File

@@ -1609,7 +1609,7 @@ void ThreadOpenConnections()
continue;
// only connect to full nodes
if (!(addr.nServices & NODE_NETWORK))
if ((addr.nServices & REQUIRED_SERVICES) != REQUIRED_SERVICES)
continue;
// only consider very recently tried nodes after 30 failed attempts