File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1036,6 +1036,7 @@ FeeFilterRounder::FeeFilterRounder(const CFeeRate& minIncrementalFee)
1036
1036
1037
1037
CAmount FeeFilterRounder::round (CAmount currentMinFee)
1038
1038
{
1039
+ AssertLockNotHeld (m_insecure_rand_mutex);
1039
1040
std::set<double >::iterator it = m_fee_set.lower_bound (currentMinFee);
1040
1041
if (it == m_fee_set.end () ||
1041
1042
(it != m_fee_set.begin () &&
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ class FeeFilterRounder
302
302
explicit FeeFilterRounder (const CFeeRate& min_incremental_fee);
303
303
304
304
/* * Quantize a minimum fee for privacy purpose before broadcast. */
305
- CAmount round (CAmount currentMinFee);
305
+ CAmount round (CAmount currentMinFee) EXCLUSIVE_LOCKS_REQUIRED(!m_insecure_rand_mutex) ;
306
306
307
307
private:
308
308
const std::set<double > m_fee_set;
You can’t perform that action at this time.
0 commit comments