diff options
| author | Matt Corallo <[email protected]> | 2017-02-06 11:53:34 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-10 11:32:40 -0500 |
| commit | 512731bed0782f10092de35a960153b17ecc11eb (patch) | |
| tree | f2026be6a805a95efc78a6063a815e2f87bcbe15 /src/net.cpp | |
| parent | Avoid copying CNodeStats to make helgrind OK with buggy std::string (diff) | |
| download | discoin-512731bed0782f10092de35a960153b17ecc11eb.tar.xz discoin-512731bed0782f10092de35a960153b17ecc11eb.zip | |
Access fRelayTxes with cs_filter lock in copyStats
Diffstat (limited to 'src/net.cpp')
| -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 b7243dce2..ea8a2a0a4 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); |