Skip to content

Commit 4894133

Browse files
Add missing lock in CNode::copyStats(...)
1 parent b312cd7 commit 4894133

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
@@ -715,7 +715,10 @@ void CNode::copyStats(CNodeStats &stats)
715715
X(nRecvBytes);
716716
}
717717
X(fWhitelisted);
718-
X(minFeeFilter);
718+
{
719+
LOCK(cs_feeFilter);
720+
X(minFeeFilter);
721+
}
719722

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

0 commit comments

Comments
 (0)