 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
6 #ifndef BITCOIN_POLICY_FEERATE_H
7 #define BITCOIN_POLICY_FEERATE_H
40 static_assert(std::is_integral<I>::value,
"CFeeRate should be used without floats");
70 #endif // BITCOIN_POLICY_FEERATE_H
@ BTC_KVB
Use BTC/kvB fee rate unit.
friend bool operator>(const CFeeRate &a, const CFeeRate &b)
friend bool operator>=(const CFeeRate &a, const CFeeRate &b)
friend bool operator<=(const CFeeRate &a, const CFeeRate &b)
Fee rate in satoshis per kilobyte: CAmount / kB.
@ ECONOMICAL
Force estimateSmartFee to use non-conservative estimates.
const std::string CURRENCY_UNIT
@ SAT_VB
Use sat/vB fee rate unit.
SERIALIZE_METHODS(CFeeRate, obj)
CFeeRate & operator+=(const CFeeRate &a)
const std::string CURRENCY_ATOM
int64_t CAmount
Amount in satoshis (Can be negative)
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
@ UNSET
Use default settings based on other criteria.
@ CONSERVATIVE
Force estimateSmartFee to use conservative estimates.
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)
CFeeRate()
Fee rate of 0 satoshis per kB.
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given size in bytes.
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
CAmount GetFeePerK() const
Return the fee in satoshis for a size of 1000 bytes.
CFeeRate(const I _nSatoshisPerK)