aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-05-27 01:00:01 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-09-08 13:06:05 -0400
commit98591c50273b13cfc5419548b527280d6a84a43d (patch)
treedb5ea02ec973007718d80d81c2474ecdddd13aa0 /src
parentfa2f8bc47fa17deccb281b750ff6c48402c5b1ce (diff)
net: move vNodesDisconnected into CConnman
Diffstat (limited to 'src')
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 9b18a32743..508b0dd962 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -820,8 +820,6 @@ size_t SocketSendData(CNode *pnode)
return nSentSize;
}
-static std::list<CNode*> vNodesDisconnected;
-
struct NodeEvictionCandidate
{
NodeId id;
diff --git a/src/net.h b/src/net.h
index a50066da9a..018126d677 100644
--- a/src/net.h
+++ b/src/net.h
@@ -292,6 +292,7 @@ private:
std::vector<std::string> vAddedNodes;
CCriticalSection cs_vAddedNodes;
std::vector<CNode*> vNodes;
+ std::list<CNode*> vNodesDisconnected;
mutable CCriticalSection cs_vNodes;
std::atomic<NodeId> nLastNodeId;
boost::condition_variable messageHandlerCondition;