Browse Source

Access fRelayTxes with cs_filter lock in copyStats

0.14
Matt Corallo 8 years ago
parent
commit
512731bed0
  1. 5
      src/net.cpp

5
src/net.cpp

@ -600,7 +600,10 @@ void CNode::copyStats(CNodeStats &stats) @@ -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);

Loading…
Cancel
Save