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)
stats.nodeid = this->GetId(); stats.nodeid = this->GetId();
X(nServices); X(nServices);
X(addr); X(addr);
X(fRelayTxes); {
LOCK(cs_filter);
X(fRelayTxes);
}
X(nLastSend); X(nLastSend);
X(nLastRecv); X(nLastRecv);
X(nTimeConnected); X(nTimeConnected);

Loading…
Cancel
Save