Bitcoin Core 28.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:
[legend]

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 
)
explicit

Create new FeeFilterRounder.

Definition at line 1089 of file fees.cpp.

Member Function Documentation

◆ GUARDED_BY()

FastRandomContext &insecure_rand FeeFilterRounder::GUARDED_BY ( m_insecure_rand_mutex  )
private

◆ round()

CAmount FeeFilterRounder::round ( CAmount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast.

Definition at line 1095 of file fees.cpp.

Member Data Documentation

◆ FEE_FILTER_SPACING

constexpr double FeeFilterRounder::FEE_FILTER_SPACING = 1.1
staticconstexprprivate

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
private

Definition at line 340 of file fees.h.

◆ m_insecure_rand_mutex

Mutex FeeFilterRounder::m_insecure_rand_mutex
private

Definition at line 341 of file fees.h.

◆ MAX_FILTER_FEERATE

constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7
staticconstexprprivate

Definition at line 325 of file fees.h.


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