mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-21 21:20:07 +01:00
add lock annotation for FeeFilterRounder::round()
Calling WITH_LOCK() on a non-recursive mutex requires not holding it beforehand. Co-authored-by: Niklas Gögge <n.goeggi@gmail.com>
This commit is contained in:
@@ -1036,6 +1036,7 @@ FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
|
||||
|
||||
CAmount FeeFilterRounder::round(CAmount currentMinFee)
|
||||
{
|
||||
AssertLockNotHeld(m_insecure_rand_mutex);
|
||||
std::set<double>::iterator it = m_fee_set.lower_bound(currentMinFee);
|
||||
if (it == m_fee_set.end() ||
|
||||
(it != m_fee_set.begin() &&
|
||||
|
||||
Reference in New Issue
Block a user