static constexpr Amount SATOSHI
Fee rate in satoshis per kilobyte: Amount / kB.
const std::set< Amount > m_fee_set
Amount round(const Amount currentMinFee) EXCLUSIVE_LOCKS_REQUIRED(!m_insecure_rand_mutex)
Quantize a minimum fee for privacy purpose before broadcast.
FeeFilterRounder(const CFeeRate &min_incremental_fee, FastRandomContext &rng)
Create new FeeFilterRounder.
Mutex m_insecure_rand_mutex
static std::set< Amount > MakeFeeSet(const CFeeRate &min_incremental_fee, const Amount &max_filter_fee_rate, const double fee_filter_spacing)
static const double FEE_SPACING
Spacing of FeeRate buckets.
static const Amount MAX_FEERATE(int64_t(1e7) *SATOSHI)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
static constexpr Amount zero() noexcept
#define AssertLockNotHeld(cs)
#define WITH_LOCK(cs, code)
Run code while locking a mutex.