diff options
author | Matt Corallo <git@bluematt.me> | 2017-02-06 11:53:34 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-02-10 11:32:40 -0500 |
commit | 512731bed0782f10092de35a960153b17ecc11eb (patch) | |
tree | f2026be6a805a95efc78a6063a815e2f87bcbe15 | |
parent | ae683c1b1960b32134f5a5a29504691c91f39cf3 (diff) |
Access fRelayTxes with cs_filter lock in copyStats
-rw-r--r-- | src/net.cpp | 5 |
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); |