Browse Source

Access fRelayTxes with cs_filter lock in copyStats

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

3
src/net.cpp

@ -600,7 +600,10 @@ void CNode::copyStats(CNodeStats &stats)
stats.nodeid = this->GetId(); stats.nodeid = this->GetId();
X(nServices); X(nServices);
X(addr); X(addr);
{
LOCK(cs_filter);
X(fRelayTxes); X(fRelayTxes);
}
X(nLastSend); X(nLastSend);
X(nLastRecv); X(nLastRecv);
X(nTimeConnected); X(nTimeConnected);

Loading…
Cancel
Save