Raven Core  3.0.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:
[legend]

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

Constructor & Destructor Documentation

◆ FeeFilterRounder()

FeeFilterRounder::FeeFilterRounder ( const CFeeRate minIncrementalFee)
explicit

Create new FeeFilterRounder.

Definition at line 1037 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.

Definition at line 1046 of file fees.cpp.

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

Definition at line 285 of file fees.h.

◆ feeset

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

Definition at line 295 of file fees.h.

◆ insecure_rand

FastRandomContext FeeFilterRounder::insecure_rand
private

Definition at line 296 of file fees.h.

◆ MAX_FILTER_FEERATE

constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7
staticprivate

Definition at line 280 of file fees.h.


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