Bitcoin
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
FeeFilterRounder Class Reference

#include <fees.h>

Public Member Functions

 FeeFilterRounder (const CFeeRate &minIncrementalFee)
 
CAmount round (CAmount currentMinFee)
 

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
 

Constructor & Destructor Documentation

◆ FeeFilterRounder()

FeeFilterRounder::FeeFilterRounder ( const CFeeRate minIncrementalFee)
explicit

Create new FeeFilterRounder

Member Function Documentation

◆ round()

CAmount FeeFilterRounder::round ( CAmount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast

Member Data Documentation

◆ FEE_FILTER_SPACING

constexpr double FeeFilterRounder::FEE_FILTER_SPACING = 1.1
staticprivate

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

◆ feeset

std::set<double> FeeFilterRounder::feeset
private

◆ insecure_rand

FastRandomContext FeeFilterRounder::insecure_rand
private

◆ MAX_FILTER_FEERATE

constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7
staticprivate

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