aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-02-06 11:53:34 -0500
committerMatt Corallo <git@bluematt.me>2017-02-10 11:32:40 -0500
commit512731bed0782f10092de35a960153b17ecc11eb (patch)
treef2026be6a805a95efc78a6063a815e2f87bcbe15 /src/net.cpp
parentae683c1b1960b32134f5a5a29504691c91f39cf3 (diff)
Access fRelayTxes with cs_filter lock in copyStats
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index b7243dce20..ea8a2a0a4a 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -600,7 +600,10 @@ void CNode::copyStats(CNodeStats &stats)
stats.nodeid = this->GetId();
X(nServices);
X(addr);
- X(fRelayTxes);
+ {
+ LOCK(cs_filter);
+ X(fRelayTxes);
+ }
X(nLastSend);
X(nLastRecv);
X(nTimeConnected);