Fabcoin Core  0.16.2
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 320 of file fees.h.

Constructor & Destructor Documentation

FeeFilterRounder::FeeFilterRounder ( const CFeeRate minIncrementalFee)

Create new FeeFilterRounder.

Definition at line 1092 of file fees.cpp.

Here is the call graph for this function:

Member Function Documentation

CAmount FeeFilterRounder::round ( CAmount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast.

Definition at line 1101 of file fees.cpp.

Here is the caller graph for this function:

Member Data Documentation

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

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

Definition at line 338 of file fees.h.

FastRandomContext FeeFilterRounder::insecure_rand
private

Definition at line 339 of file fees.h.

constexpr double FeeFilterRounder::MAX_FILTER_FEERATE = 1e7
staticprivate

Definition at line 323 of file fees.h.


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