Bitcoin Core  21.99.0
P2P Digital Currency
Public 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 &minIncrementalFee)
 Create new FeeFilterRounder. More...
CAmount round (CAmount currentMinFee)
 Quantize a minimum fee for privacy purpose before broadcast. More...

Private Attributes

std::set< double > feeset
FastRandomContext insecure_rand

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 272 of file fees.h.

Constructor & Destructor Documentation

◆ FeeFilterRounder()

FeeFilterRounder::FeeFilterRounder ( const CFeeRate minIncrementalFee)

Create new FeeFilterRounder.

Definition at line 974 of file fees.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ round()

CAmount FeeFilterRounder::round ( CAmount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast.

Not thread-safe due to use of FastRandomContext

Definition at line 983 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 280 of file fees.h.

◆ feeset

std::set<double> FeeFilterRounder::feeset

Definition at line 290 of file fees.h.

◆ insecure_rand

FastRandomContext FeeFilterRounder::insecure_rand

Definition at line 291 of file fees.h.


constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7

Definition at line 275 of file fees.h.

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