diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-05-20 15:17:00 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-05-20 15:17:00 +0200 |
commit | 52c0b3e859089c0ac98e7261ded6391b4f8eeeaf (patch) | |
tree | 2664245599ecd69ad488665ef323113893279600 /src/banman.cpp | |
parent | 3919059deb60d6ead9defc9d213a3f0c2ab72e90 (diff) |
refactor: Add thread safety annotation to `BanMan::SweepBanned()`
Diffstat (limited to 'src/banman.cpp')
-rw-r--r-- | src/banman.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/banman.cpp b/src/banman.cpp index 901d91809e..02c70be584 100644 --- a/src/banman.cpp +++ b/src/banman.cpp @@ -179,10 +179,11 @@ void BanMan::GetBanned(banmap_t& banmap) void BanMan::SweepBanned() { + AssertLockHeld(m_cs_banned); + int64_t now = GetTime(); bool notify_ui = false; { - LOCK(m_cs_banned); banmap_t::iterator it = m_banned.begin(); while (it != m_banned.end()) { CSubNet sub_net = (*it).first; |