Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
FeeFilterRounder Class Reference

#include <block_policy_estimator.h>

Collaboration diagram for FeeFilterRounder:
[legend]

Public Member Functions

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

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.

Detailed Description

Definition at line 324 of file block_policy_estimator.h.

Constructor & Destructor Documentation

◆ FeeFilterRounder()

FeeFilterRounder::FeeFilterRounder ( const CFeeRate & min_incremental_fee,
FastRandomContext & rng )
explicit

Create new FeeFilterRounder.

Definition at line 1103 of file block_policy_estimator.cpp.

Here is the call graph for this function:

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 1109 of file block_policy_estimator.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ FEE_FILTER_SPACING

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 332 of file block_policy_estimator.h.

◆ m_fee_set

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

Definition at line 342 of file block_policy_estimator.h.

◆ m_insecure_rand_mutex

Mutex FeeFilterRounder::m_insecure_rand_mutex
private

Definition at line 343 of file block_policy_estimator.h.

◆ MAX_FILTER_FEERATE

double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7
staticconstexprprivate

Definition at line 327 of file block_policy_estimator.h.


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