aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-02-06 12:08:31 -0500
committerMatt Corallo <[email protected]>2017-02-10 11:32:41 -0500
commit22b4966a29501c4f3f2e970ac5008fbd91e665a9 (patch)
tree2beb02b98598c74d44f4471bf157405804b7c321 /src/net.h
parentMake nServices atomic (diff)
downloaddiscoin-22b4966a29501c4f3f2e970ac5008fbd91e665a9.tar.xz
discoin-22b4966a29501c4f3f2e970ac5008fbd91e665a9.zip
Move [clean|str]SubVer writes/copyStats into a lock
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index cf742a8ca..ddc050eb1 100644
--- a/src/net.h
+++ b/src/net.h
@@ -598,6 +598,7 @@ public:
// store the sanitized version in cleanSubVer. The original should be used when dealing with
// the network or wire types and the cleaned string used when displayed or logged.
std::string strSubVer, cleanSubVer;
+ CCriticalSection cs_SubVer; // used for both cleanSubVer and strSubVer
bool fWhitelisted; // This peer can bypass DoS banning.
bool fFeeler; // If true this node is being used as a short lived feeler.
bool fOneShot;