aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2016-06-13 16:01:21 +0200
committerPieter Wuille <[email protected]>2016-06-13 17:40:16 +0200
commitecd7fd37c888f8ebc64cf3d92272975b37ae54ca (patch)
treef965abcecc43584d8f9f9a42629df169fdcc249e /src/net.cpp
parentIntroduce enum ServiceFlags for service flags (diff)
downloaddiscoin-ecd7fd37c888f8ebc64cf3d92272975b37ae54ca.tar.xz
discoin-ecd7fd37c888f8ebc64cf3d92272975b37ae54ca.zip
Introduce REQUIRED_SERVICES constant
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 4661974d2..a390eca77 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -1596,7 +1596,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