diff options
author | Patrick Strateman <patrick.strateman@gmail.com> | 2018-09-24 16:30:53 -0400 |
---|---|---|
committer | Patrick Strateman <patrick.strateman@gmail.com> | 2018-09-24 16:30:53 -0400 |
commit | edb5350c32cdf7f8487777b5cc1a2ebfcdfc9e75 (patch) | |
tree | e7e8f22dbbccbfd2a92d4554a4c23fb896939fc5 /src/net.h | |
parent | 2f7ae35ce8cf5d681de8e41a2f7c0f623fa71fc5 (diff) |
Move NotifyNumConnectionsChanged logic to private method.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |