Changeset View
Changeset View
Standalone View
Standalone View
src/policy/fees.h
Show All 24 Lines | |||||
/** Spacing of FeeRate buckets */ | /** Spacing of FeeRate buckets */ | ||||
static const double FEE_SPACING = 1.1; | static const double FEE_SPACING = 1.1; | ||||
class FeeFilterRounder { | class FeeFilterRounder { | ||||
public: | public: | ||||
/** Create new FeeFilterRounder */ | /** Create new FeeFilterRounder */ | ||||
explicit FeeFilterRounder(const CFeeRate &minIncrementalFee); | explicit FeeFilterRounder(const CFeeRate &minIncrementalFee); | ||||
/** Quantize a minimum fee for privacy purpose before broadcast **/ | /** | ||||
* Quantize a minimum fee for privacy purpose before broadcast. | |||||
* Not thread-safe due to use of FastRandomContext | |||||
**/ | |||||
Amount round(const Amount currentMinFee); | Amount round(const Amount currentMinFee); | ||||
private: | private: | ||||
std::set<Amount> feeset; | std::set<Amount> feeset; | ||||
FastRandomContext insecure_rand; | FastRandomContext insecure_rand; | ||||
}; | }; | ||||
#endif // BITCOIN_POLICY_FEES_H | #endif // BITCOIN_POLICY_FEES_H |