Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FeeFilterRounder Class Reference

#include <fees.h>

Collaboration diagram for FeeFilterRounder:

Public Member Functions

 FeeFilterRounder (const CFeeRate &min_incremental_fee, FastRandomContext &rng)
 Create new FeeFilterRounder. More...
CAmount round (CAmount currentMinFee) EXCLUSIVE_LOCKS_REQUIRED(!m_insecure_rand_mutex)
 Quantize a minimum fee for privacy purpose before broadcast. More...

Private Member Functions

FastRandomContext &insecure_rand GUARDED_BY (m_insecure_rand_mutex)

Private Attributes

const std::set< double > m_fee_set
Mutex m_insecure_rand_mutex

Static Private Attributes

static constexpr double MAX_FILTER_FEERATE = 1e7
static constexpr double FEE_FILTER_SPACING = 1.1
 FEE_FILTER_SPACING is just used to provide some quantization of fee filter results. More...

Detailed Description

Definition at line 322 of file fees.h.

Constructor & Destructor Documentation

◆ FeeFilterRounder()

FeeFilterRounder::FeeFilterRounder ( const CFeeRate min_incremental_fee,
FastRandomContext rng 

Create new FeeFilterRounder.

Definition at line 1086 of file fees.cpp.

Member Function Documentation


FastRandomContext& insecure_rand FeeFilterRounder::GUARDED_BY ( m_insecure_rand_mutex  )

◆ round()

CAmount FeeFilterRounder::round ( CAmount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast.

Definition at line 1092 of file fees.cpp.

Member Data Documentation


constexpr double FeeFilterRounder::FEE_FILTER_SPACING = 1.1

FEE_FILTER_SPACING is just used to provide some quantization of fee filter results.

Historically it reused FEE_SPACING, but it is completely unrelated, and was made a separate constant so the two concepts are not tied together

Definition at line 330 of file fees.h.

◆ m_fee_set

const std::set<double> FeeFilterRounder::m_fee_set

Definition at line 340 of file fees.h.

◆ m_insecure_rand_mutex

Mutex FeeFilterRounder::m_insecure_rand_mutex

Definition at line 341 of file fees.h.


constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7

Definition at line 325 of file fees.h.

The documentation for this class was generated from the following files: