mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Access fRelayTxes with cs_filter lock in copyStats
This commit is contained in:
parent
ae683c1b19
commit
512731bed0
@ -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…
Reference in New Issue
Block a user