5#ifndef BITCOIN_POLICY_FEES_H
6#define BITCOIN_POLICY_FEES_H
static constexpr Amount SATOSHI
Fee rate in satoshis per kilobyte: Amount / kB.
const std::set< Amount > m_fee_set
FastRandomContext &insecure_rand GUARDED_BY(m_insecure_rand_mutex)
Amount round(const Amount currentMinFee) EXCLUSIVE_LOCKS_REQUIRED(!m_insecure_rand_mutex)
Quantize a minimum fee for privacy purpose before broadcast.
Mutex m_insecure_rand_mutex
static constexpr Amount MIN_FEERATE(10 *SATOSHI)
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...
#define EXCLUSIVE_LOCKS_REQUIRED(...)