Access fRelayTxes with cs_filter lock in copyStats

This commit is contained in:
Matt Corallo committed 2017-02-10 11:32:40 -05:00
1 parent ae683c1b19
commit 512731bed0
1 file changed
+4 -1
+4 -1
View File
@@ -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);