Skip to content

Commit 512731b

Browse files
committed
Access fRelayTxes with cs_filter lock in copyStats
1 parent ae683c1 commit 512731b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/net.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,10 @@ void CNode::copyStats(CNodeStats &stats)
600600
stats.nodeid = this->GetId();
601601
X(nServices);
602602
X(addr);
603-
X(fRelayTxes);
603+
{
604+
LOCK(cs_filter);
605+
X(fRelayTxes);
606+
}
604607
X(nLastSend);
605608
X(nLastRecv);
606609
X(nTimeConnected);

0 commit comments

Comments
 (0)