aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2018-09-24 16:30:53 -0400
committerPatrick Strateman <patrick.strateman@gmail.com>2018-09-24 16:30:53 -0400
commitedb5350c32cdf7f8487777b5cc1a2ebfcdfc9e75 (patch)
treee7e8f22dbbccbfd2a92d4554a4c23fb896939fc5 /src/net.h
parent2f7ae35ce8cf5d681de8e41a2f7c0f623fa71fc5 (diff)
Move NotifyNumConnectionsChanged logic to private method.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 9f6c426ab7..ba5cd4f5c7 100644
--- a/src/net.h
+++ b/src/net.h
@@ -336,6 +336,7 @@ private:
void ThreadOpenConnections(std::vector<std::string> connect);
void ThreadMessageHandler();
void AcceptConnection(const ListenSocket& hListenSocket);
+ void NotifyNumConnectionsChanged();
void ThreadSocketHandler();
void ThreadDNSAddressSeed();
@@ -406,6 +407,7 @@ private:
std::list<CNode*> vNodesDisconnected;
mutable CCriticalSection cs_vNodes;
std::atomic<NodeId> nLastNodeId;
+ unsigned int nPrevNodeCount;
/** Services this instance offers */
ServiceFlags nLocalServices;