Skip to content

Commit

Permalink
Access fRelayTxes with cs_filter lock in copyStats
Browse files Browse the repository at this point in the history
zcash: cherry picked from commit 512731b
zcash: bitcoin/bitcoin#9708
  • Loading branch information
TheBlueMatt authored and LarryRuane committed May 31, 2021
1 parent b23bc94 commit bd8eca9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ void CNode::copyStats(CNodeStats &stats)
}
stats.fInbound = fInbound;
stats.nStartingHeight = nStartingHeight;
{
LOCK(cs_filter);
stats.fRelayTxes = fRelayTxes;
}
{
LOCK(cs_vSend);
stats.nSendBytes = nSendBytes;
Expand Down

0 comments on commit bd8eca9

Please sign in to comment.