6 #ifndef BITCOIN_POLICY_FEERATE_H 7 #define BITCOIN_POLICY_FEERATE_H 15 #include <type_traits> 44 static_assert(std::is_integral<I>::value,
"CFeeRate should be used without floats");
78 #endif // BITCOIN_POLICY_FEERATE_H 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)
Force estimateSmartFee to use non-conservative estimates.
Use sat/vB fee rate unit.
CAmount nSatoshisPerK
Fee rate in sat/kvB (satoshis per 1000 virtualbytes)
Force estimateSmartFee to use conservative estimates.
SERIALIZE_METHODS(CFeeRate, obj)
int64_t CAmount
Amount in satoshis (Can be negative)
const std::string CURRENCY_ATOM
std::string ToString(const FeeEstimateMode &fee_estimate_mode=FeeEstimateMode::BTC_KVB) const
CFeeRate & operator+=(const CFeeRate &a)
const std::string CURRENCY_UNIT
Use default settings based on other criteria.
friend bool operator<(const CFeeRate &a, const CFeeRate &b)
CFeeRate()
Fee rate of 0 satoshis per kvB.
Fee rate in satoshis per kilovirtualbyte: CAmount / kvB.
CAmount GetFee(uint32_t num_bytes) const
Return the fee in satoshis for the given vsize in vbytes.
friend bool operator==(const CFeeRate &a, const CFeeRate &b)
friend bool operator!=(const CFeeRate &a, const CFeeRate &b)
Use BTC/kvB fee rate unit.
CAmount GetFeePerK() const
Return the fee in satoshis for a vsize of 1000 vbytes.
CFeeRate(const I _nSatoshisPerK)