Skip to content

Commit

Permalink
Add missing lock in CNode::copyStats(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Nov 28, 2018
1 parent b312cd7 commit 4894133
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,10 @@ void CNode::copyStats(CNodeStats &stats)
X(nRecvBytes);
}
X(fWhitelisted);
X(minFeeFilter);
{
LOCK(cs_feeFilter);
X(minFeeFilter);
}

// It is common for nodes with good ping times to suddenly become lagged,
// due to a new block arriving or other large transfer.
Expand Down

0 comments on commit 4894133

Please sign in to comment.