Bitcoin ABC  0.26.3
P2P Digital Currency
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FeeFilterRounder Class Reference

#include <fees.h>

Collaboration diagram for FeeFilterRounder:
[legend]

Public Member Functions

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

Private Member Functions

FastRandomContext &insecure_rand GUARDED_BY (m_insecure_rand_mutex)
 

Private Attributes

const std::set< Amountm_fee_set
 
Mutex m_insecure_rand_mutex
 

Detailed Description

Definition at line 29 of file fees.h.

Constructor & Destructor Documentation

◆ FeeFilterRounder()

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

Create new FeeFilterRounder.

Definition at line 28 of file fees.cpp.

Member Function Documentation

◆ GUARDED_BY()

FastRandomContext& insecure_rand FeeFilterRounder::GUARDED_BY ( m_insecure_rand_mutex  )
private

◆ round()

Amount FeeFilterRounder::round ( const Amount  currentMinFee)

Quantize a minimum fee for privacy purpose before broadcast.

Definition at line 33 of file fees.cpp.

Member Data Documentation

◆ m_fee_set

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

Definition at line 42 of file fees.h.

◆ m_insecure_rand_mutex

Mutex FeeFilterRounder::m_insecure_rand_mutex
private

Definition at line 43 of file fees.h.


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